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 -->
  #1 (permalink)  
Old 04-27-2008
cdfd123 cdfd123 is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 112
compare two files and print the last row into first

suppose
fileA
vis
vis
gyh
gye
gyh


fileB
vis 23
gyh 21
gye 32

output shud be like
in fileA ...
vis 23
vis 23
gyh 21
gye 32
gyh 21

Last edited by cdfd123; 04-27-2008 at 09:05 AM.. Reason: coloring