unix - cut command to split comma separated value having spaces -


i have file like

aaaaa, aa 1 bbbbb, bb2 cccccccc, ccc 3/2 

and want comma separated value mean like

aaaaa aa 1 

in first iteration

bbbbb bb2  

in second iteration , on

can 1 me?

thank you

while ifs=, read 1 two;   echo "$one"      # aaaaa on first iteration   echo "$two"      # aa 1 on first iteration done < input-file 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -