![]() |
|
|
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 |
| compare 2 files.. | amon | Shell Programming and Scripting | 8 | 06-23-2008 11:34 AM |
| compare files | danabo | Shell Programming and Scripting | 3 | 05-19-2008 01:09 PM |
| Compare files | Berserk | Shell Programming and Scripting | 6 | 09-05-2005 05:04 AM |
| Compare two files | penfold | Shell Programming and Scripting | 3 | 04-29-2005 12:04 AM |
| compare files and beyond | MizzGail | UNIX for Dummies Questions & Answers | 2 | 04-25-2003 02:34 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
compare files
Hi,
how to read the 2 files and compare each other in shell script? i have 2 files test1 and test2, both files contains 20 character records.we have to compare file 1 records with file2, if exists then reject the record else we have to append it to test2 file. in file test1 around 100 single column records are there. and test2 around 50000 single column records. how can we do in shell script? ex: test1 burningburning21sstt ex:test2 burningburning21eett we need to compare only first 16 letters of the record like if test1.burningburning21 = test2.burningburning21 then reject else append to test2 file. we are using ksh. Thanks in advance |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|