![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| compare columns from seven files and print the output | smriti_shridhar | Shell Programming and Scripting | 7 | 06-10-2008 09:22 PM |
| Compare 2 files and output result in pop up window | hongsh | UNIX for Dummies Questions & Answers | 2 | 05-23-2008 06:50 AM |
| Compare 2 files and give uniq output | rauphelhunter | Shell Programming and Scripting | 1 | 05-12-2008 01:47 PM |
| Compare 2 files for a single column and output differences | samit_9999 | UNIX for Dummies Questions & Answers | 1 | 04-23-2008 09:02 AM |
| compare 2 files, output dups to file | blt123 | UNIX for Dummies Questions & Answers | 2 | 07-15-2004 07:31 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
compare two col from 2 files, and output uniq from file 1
Hi,
I can't find how to achive such thing, please help. I have try with uniq and comm but those command can't compare columns just whole lines, I think awk will be the best but awk is magic for me as of now. file a a1~a2~a3~a4~a6~a7~a8 file b b1~b2~b3~b4~b6~b7~b8 output 1: compare columns 3 from files a and b print all lines from file a where where column a3 is present in file b as b3 a1~a2~a3~a4~a6~a7~a8 Regards Peter |
| Forum Sponsor | ||
|
|