How do I do the above ?
I have a file A, which looks like
a,b,c c,dddd
e,f,g g,hhhh
etc etc
I need to do something like :-
while read f1 f2 f3 f4
do
........
done < file A
But f1 comes over with the whole line, and f2 f3 f4 are not set.
How do I tell it to recognise the commas as the field separators ?
Editing file A to replace the commas with spaces is not on, as f3 contains spaces.
Hope someone can help.
Thanks
I have a file A, which looks like
a,b,c c,dddd
e,f,g g,hhhh
etc etc
I need to do something like :-
while read f1 f2 f3 f4
do
........
done < file A
But f1 comes over with the whole line, and f2 f3 f4 are not set.
How do I tell it to recognise the commas as the field separators ?
Editing file A to replace the commas with spaces is not on, as f3 contains spaces.
Hope someone can help.
Thanks