The UNIX and Linux Forums
>
Special Forums
>
UNIX Desktop for Dummies Questions & Answers
Grep
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Grep
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-25-2009
pludi
Moderator
Join Date: Dec 2008
Location: .at
Posts: 1,920
If it's a fixed-field record with '*' as the separator, you could use
Code:
awk -F'*' '{print $49}' file
Otherwise, if you only want the part after 'N1*
PR
*', this
Perl
snippet might help:
Code:
perl
-ne 'print $1,"\n" if /N1\*
PR
\*(.*?)\*/;' file
pludi
View Public Profile
Find all posts by pludi
Find pludi's past nominations received
Find pludi's present nominations given