As I try to get familiar with the GNU Parallel tutorial on quoting, I need some help to move faster.
The command I want to quote is
parallel --dryrun "awk '{ print $0,"\t","{.}" }' {} > {}" ::: *foo.txt
Basically, I want to add the FILENAME as the last column of the tab-delimited file, for each input file.
Problem is that bash interpretes the above command as
awk '{ print /bin/bash,t,foo.txt }' foo.txt > foo.txt
Which doesn't work. So it needs appropriate quoting to work
I added information about the expected output.