The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 11-19-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,330
Quote:
Originally Posted by forumthreads View Post
For the grep command the error is

>grep -v -f old new
grep: illegal option --f
Have you adjust the line with the your own filenames?

Quote:
Originally Posted by forumthreads View Post
For the awk command this is what i get

>awk 'NR==FNR{a[$0];next}!($0 in a)' old new
awk: syntax error near line 1
awk: bailing out near line
Use nawk or /usr/xpg4/bin/awk on Solaris.

Regards