Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-07-2005
jhansrod jhansrod is offline
Registered User
 

Join Date: May 2005
Posts: 80
Puuurfect !!!!!!!!!
Thank you
One last question on this. How do I capture the rest of the line from the position where field 1 ends.
e.g.

Field1=`echo '/a/b/c/d' | sed 's#.*/\(.*\)#\1#'`

Restof= ?

output
Field1=d
Restof=/a/b/c/

Thx

J