Search Results

Search: Posts Made By: Scrutinizer
64,009
Posted By Scrutinizer
Right, this ought to do it then.. sed...
Right, this ought to do it then..
sed 's/\("[^"]*"\)*,\("[^"]*"\)*/\1\n\2/g'
64,009
Posted By Scrutinizer
Try: sed 's/,\("[^"]*"\)*/\n\1/g' $ echo...
Try:
sed 's/,\("[^"]*"\)*/\n\1/g'

$ echo 'aaa,"hell world, test text",bbb,ccc," test text"' | sed 's/,\("[^"]*"\)*/\n\1/g'
aaa
"hell world, test text"
bbb
ccc
" test text"
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy