The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Help with awk
.
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
:
Help with awk
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
08-19-2008
radoulov
addict
Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,926
Tested with
GNU
Awk (I believe it should work with nawk on Solaris too):
Code:
awk -F: '$0=/\/vg/?(!x++?y:RS)$0:FS$0' ORS= filename
radoulov
View Public Profile
Find all posts by radoulov
Find radoulov's past nominations received
Find radoulov's present nominations given