The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 04-29-2008
solracq solracq is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 8
Quote:
Originally Posted by ripat View Post
Pure awk:

side by side:

Code:
 awk 'NR==FNR{a[NR]=$2; next} {print a[FNR], $2}' file1 file2

concatenated on one column:

Code:
 awk '{print $2}' file1 file2
ripat,

IT WORKS...!
THANKS A LOT !!!

solracq
p.s. also thx to to the ppl who answered my question!