The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
Field identification starting from the right
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Field identification starting from the right
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
08-07-2005
jhansrod
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
jhansrod
View Public Profile
Find all posts by jhansrod