Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cut from a specified point

Status
Not open for further replies.

ruzwan

Technical User
Jul 3, 2003
6
DE
Can you cut from a specified point and then work backwards.
eg.
240109603749 3615 3615 D P 0 N
85157523749 3616 3616 D P 0 N
176456503749 3617 3617 D P 0 N

The 3749 is constant at the end of field one. I need to work back from 3749 and grep the pid number before the 3749.
Thanks
 
sed -e 's/3749 .*//'

??
I need to work back from 3749 and grep the pid number before the 3749.

:) guggach
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top