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
Post a Comment