Hi
I'm really new to this so sorry if this is trivial
What I'm trying to do is take a file with 3 columns of numbers and cat all the entries of the second and third columns which have the same entry in the first column into a file with the number from the first column in the name. So say
And if I wanted to use the input filename in the output file's names? How owuld I do that?
I have the whole thing in a big script:
cat listoffilenames | while read line; do awk{the stuff above but also want the $line name in here too but it doesnt evaluated $line for me, instead prints $line} $line
What I want to do is take each filename in listoffiles use awk to extract the 2nd column and 3rd column of my data which have the same entry in the first column and put them in a file containing the same name as the file from which they came.