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 02-07-2007
efernandes efernandes is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 5
How can I get multiple info from different files

HI,

Supose I have these 2 files:

file1.txt
Name: John
Age:28
DateOfBirth:21/12/2004

file2.txt
Name: Thomas
Age:30
DateOfBirth:11/1/2003

I need to retrieve into a single file the "Name" and "DateOfBirth" from the 2 files, so the result looks like this:

file3.txt
John:21/12/2004
Thomas:11/1/2003

Regards
Elio