Extracting fields from multiple files using awk
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}'
1 comments:
Nice Article.
Some examples on Find Command and Awk Command
Post a Comment