hi, I have write a code to retrive data from each line of a file:
sed -e '/^#/d' file.csv | awk '{ printf "TEST,%s:AUX,%s;\n", $0, "'A'"}' >
pippo.txt
where the input file.csv was like this:
1234
2345
2334
3344
and the output of my code is a file with:
TEST,1234:AUX,A;
TEST,2345:AUX,A;
TEST,2334:AUX,A;
TEST,3344:AUX,A;
###############################
Now I have a different input file
1234,3
2345,1
2334,2
3344,1
And for each line I need to retrive the first and the second number(the two separeted by the comma)
I need an output like this:
TEST,1234:AUX,3;
TEST,2345:AUX,1;
TEST,2334:AUX,2;
TEST,3344:AUX,1;
I'm having a lot of problems writing this new code, can somebody help me?