![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extract lines from a file automatically. Please a Help | alexcol | Shell Programming and Scripting | 8 | 12-16-2006 05:25 PM |
| How to extract a sequence of n lines from a file | 0ktalmagik | Shell Programming and Scripting | 4 | 06-30-2006 12:24 AM |
| How to extract many lines from a file, typically the 1000 last | kingkong | UNIX for Dummies Questions & Answers | 3 | 11-23-2005 04:20 AM |
| how to extract a range of lines from a file | beilstwh | Shell Programming and Scripting | 5 | 07-09-2004 09:20 AM |
| extract specific lines from file | apalex | UNIX for Dummies Questions & Answers | 2 | 05-15-2001 10:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I think the code should be:
-->
nawk 'FNR==NR {file2[$2];next} !($2 in file1)' file2 file1 Code:
nawk 'FNR==NR {file2[$2];next} !($2 in file1)' file2 file1
but awk is allowed:ttss...@hk... /home/ttss...> nawk 'FNR==NR {ff2[$2];next} !($2 in ff1)' ff2 ff1 ksh: nawk: not found --> Code:
ttss...@hk... /home/ttss...> nawk 'FNR==NR {ff2[$2];next} !($2 in ff1)' ff2 ff1
ksh: nawk: not found
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|