|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
I am trying to use grep to compare 2 files to generate the "difference" file. Following is the example and expectation.
example: file1 A B C file2 AA D E BB Expectation: I am using following grep command; grep -v -f file1 file2 > file3. Here is the output from previous command: D E Instead I am also expecting AA and BB in the output. The above command is treating "AA" and "BB" same as "A" and "B" Any inputs will be appreciated. |
|
#2
|
|||
|
|||
|
man comm diff
Last edited by guggach : December 6th, 2004 at 04:40 AM. Reason: typo |
|
#3
|
|||
|
|||
|
thanks
thanks for your inputs
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > grep - how to compare strings in 2 files ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|