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 01-05-2009
sudhir_barker sudhir_barker is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 2
Sorting the records in the Flat file

Hi all,

I am using this command "sort -d -u -k1 IMSTEST.74E -o tmp.txt" to the records in the flat.

Can any tell me how to sort the file except first line in the file

For ex:
i/p
First line: DXYZ
Second line : jumy
third : cmhk
fourth : andy

Output should be:
DXYZ
andy
cmhk
jumy


Thanks In Advance
Sudhir