I am trying to process such text files awkusing the command parallelas a shell script, but could not get it to output each job to another file
If I try:
seq 10 | parallel awk \''{ if ( $5 > 0.4 ) print $2}'\' file{}.txt > file{}.out
It outputs to a file file{}.outinstead file1.out, file2.outetc.
The tutorial and man pages also suggest that I could use --files, but it just prints to stdout:
seq 10 | parallel awk \''{ if ( $5 > 0.4 ) print $2}'\' file{}.txt --files file{}.out
source
share