The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
yet another awk field syntax question
.
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
:
yet another awk field syntax question
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-22-2007
anbu23
Registered User
Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Code:
awk -F: -v OFS="\nor\n" ' { sub(".*xyz:",""); for(i=1;i<=NF;++i) $i=$i" "NF ;print } ' file
anbu23
View Public Profile
Find all posts by anbu23
Find anbu23's past nominations received
Find anbu23's present nominations given