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 03-15-2008
McLan McLan is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 21
awk- report generation from input file

I have input file with below content:

Person:
Name: Firstname1 lastname1
Address: 111, Straat
City : Hilversum

Person:
Name : Fistname2 lastname2
Address: 222, street
Cit: Bussum

Person:
Name : Firstname2 lastname3
Address: 333, station straat
City: Amsterdam

I need the output file withe the below contents:
lastname1 111 Hilversum
lastname2 222 Bussum
lastname3 333 Amsterdam

is it possible, if yes how?

Thanks