![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum 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 |
| awk to compare lines of two files and print output on screen | chlfc | Shell Programming and Scripting | 3 | 03-24-2008 01:16 AM |
| print selected lines | tonet | Shell Programming and Scripting | 6 | 10-08-2007 02:50 AM |
| How to print specific lines with awk | Bugenhagen | Shell Programming and Scripting | 10 | 08-16-2007 03:41 AM |
| How to print number of lines with awk ? | maheshsri | Shell Programming and Scripting | 1 | 11-17-2005 11:19 PM |
| print adjacent lines | apalex | UNIX for Dummies Questions & Answers | 1 | 04-29-2002 08:59 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
print the first 5 lines in which 2 files differs
it is a simple problem, but I am totally new to shell programming
There are 2 files. I have to print the 5 five lines which are different. I appreciate any help. 10x. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
use comm and head
comm -13 file1 file2 | head -5 comm -23 file1 file2 |head -5 |
|
#3
|
|||
|
|||
|
10x a lot, I've tried comm but didn't know what other command to use
|
|||
| Google The UNIX and Linux Forums |