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 06-04-2008
eamani_sun eamani_sun is offline
Registered User
  
 

Join Date: May 2008
Posts: 40
Help me with sed`

Hi,

I have a file with following data in it.

root 1933 1923 localhost calm 32rhewr


I would only need 2nd column "1933" and throw everything away. how can i do it with sed? I know that we can do it with cut, but i want it with 'sed'.

Thanks in advance

--sunny