The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 08-04-2006
rjsha1 rjsha1 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 33
Moving Part of a field to another field using AWK

Hi there,
I have a comma seperated file with nine fields

the fields are

rerate: "numberTX",field2,field3,field4,field5.....


I want to do this to the file

reate: "field5TX",field2,field3,field4,field5


I know I can do this using AWK, but the thing giving me fits is that I need to keep the first part of thr first field there. Anyone got any ideas how I would do this ????