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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -