Hello.
The token is any printable characters between 2 " .
The token is unknown, but we know that it is between 2 "
Tok 1 : "1234x567"
Tok 2 : "A3b6+None"
Tok 3 : "A3b6!1234=@"
The ligne is :
Line 1 :
"9876xABCDE"Do you have any code fragments or data samples in your post
Line 2 :
"nboobd" Use descriptive thread titles when posting
But it is possible that there is a whitespace at the beginning of the ligne
Line 3 :
"NFHNEJSniuo112" See new thread posting rules at the top
Each line is in a file.
And I would like the command like : sed parameter file1 > file2
Think awk may be more appropriate, you can use its token splitting features to extract exactly what you want. Tell it that " splits columns and the token will always be the second column, i.e. $2.
FS is the special variable for column separator, so I'm just printing quote, token, quote.