Hi All,
Can some one help me in providing the unix command to ignore the "" in a line. To explain in detail
I have a file which is space delimited.
Ex
1 2 3 4 "hello" "rock dude" 5 6 7
The output should look like below
1|2|3|4|"hello"|"rock dude"|5|6|7
when I use the below command the output is
sed -e 's/[ ]/|/g' samp
perl -i -pe 's/[ ]/|/g' samp
1|2|3|4|"hello"|"rock|dude"|5|6|7
where in between the string it gives a pipe symbol.
So I want to ignore the spaces with in the string (" ")? Hope my query is clear. Please help
dude