|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
To find Difference
Hi Friends,
I need to find the difference between two files , File_1 contained 4 columns, and File_2 contained 4 columns, I need to find the difference using 1st column, Or need to find the difference using 3st column, |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
For detecting differences in the first field (if this is what you mean with "column"), you could try: Code:
paste File_1 File_2 | awk '$1 != $5' |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
I need the count difference of the files Which present like File 1 Code:
1 a 2 b 3 c 4 e File 2: Code:
1 e 2 f 3 g I need the row count, here compare two file 2 has -1 count. |
|
#4
|
|||
|
|||
|
Hmm. I don't really understand what the issue is. Please wrap data and code in CODE tags.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
the command should Find the difference of the row or lines
|
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
See the man page of the wc utility: "wc - print newline, word, and byte counts for each file"
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Quote:
Quote:
Please be far more clear in specifying your requirements, telling us what comes from where and goes to where based on what conditions. And, be sure to tell rows from columns! |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find time difference | wnaguib | UNIX for Dummies Questions & Answers | 23 | 06-29-2012 05:35 PM |
| How to find time difference? | wnaguib | Shell Programming and Scripting | 1 | 06-25-2012 10:56 AM |
| To find difference between two files on a whole | anandek | Shell Programming and Scripting | 2 | 06-20-2012 09:14 AM |
| Find difference between 2 files | kanthrajgowda | UNIX for Advanced & Expert Users | 2 | 04-07-2011 09:10 PM |
| Difference between locate and find | camerja1 | UNIX for Dummies Questions & Answers | 1 | 06-25-2002 01:55 PM |
|
|