The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
column handling in 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
:
column handling in awk
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
10-10-2008
danmero
丹
Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,441
That's a head start:
Code:
awk 'NR==FNR{_[NR]=$0;next;}{$1=_[FNR];print}' file1 file2
danmero
View Public Profile
Find all posts by danmero
Find danmero's past nominations received
Find danmero's present nominations given