![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to compare text value in shell | reply2soumya | UNIX for Advanced & Expert Users | 2 | 06-19-2007 02:03 PM |
| Format a column of text | mlucas | UNIX for Dummies Questions & Answers | 2 | 08-16-2006 04:52 PM |
| Set format to text | Lestat | Shell Programming and Scripting | 3 | 06-09-2005 08:20 PM |
| converting PDF to text, rtf doc format | saurya_s | UNIX for Advanced & Expert Users | 1 | 04-23-2004 04:25 PM |
| compare text files | jimmyflip | UNIX for Dummies Questions & Answers | 14 | 05-28-2002 08:02 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
compare two text files in a good format
I am writting a script where I have to Campare two text files.
I have 3 text files named by s_list, s_list_new and dmg_file. where I have to compare s_list and s_list_new and whatever the unique values are in s_list I have to add that in the dmg_file. And the values they are only in s_list_new and not in s_list I have to delete that from dmg_file I have tried so many things, but diff, comm is not helping me because if i do comm it compares line by line and the value may not match line by line and with diff its not giving me exact output and I am thinking may be im not aware of different diff output formats. for example if i do diff temp temp1 i get like this output and I dont want it. i just want thos unique values nothing else diff temp temp1 1,5d0 < a < 1 < 2 < 3 < 4 11c6,9 < --- > 10 > 11 > 12 > 13 Any Help Plz I will appreciate the help |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|