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 10-13-2008
Satyak Satyak is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 85
Post separate a line having particular field

hi
i have a file containes data like,

20081013-030618.675199 [2712] D 17 Change state DATA_RECEIVE->EOD, RC=0
20081013-030618.868358 [2712] D 17 Reading data...
20081013-030618.868498 [2712] D 18 Received 5 bytes
20081013-030618.868537 [2712] U Buffer received:

now i need to cut the 4th field i.e 17 and write that line into a separate file

please help

thanks in advance
Satya