Using Ghostscript to concatenate two pdf files
0
Posted by Arsh | Labels: Ghostscript, Linux | Posted on Monday, December 6, 2010
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=final.pdf file1.pdf file2.pdf
Extracting fields from multiple files using awk
1
Posted by Arsh | Labels: awk, Linux | Posted on Sunday, February 7, 2010
paste file1 file2 | awk '{print $2 " " $4}'
We can do more! Suppose you want to add column 1 of file1 to column 3 of file2. This can be accomplished using the following command:
paste file1 file2 | awk '{print $1-$6}'