The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
grep help, how do i rewrite this
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
grep help, how do i rewrite this
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-31-2008
Franklin52
Moderator
Join Date: Feb 2007
Posts: 2,474
With awk you can do something like this:
Code:
awk ' FNR==NR{arr[$1]=$1;next} !arr[$1]{print} ' "datafile.txt" "numbers.txt"
Regards
Franklin52
View Public Profile
Find all posts by Franklin52