![]() |
|
|
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 |
| Comparison Unix and Windows file sysytem | localp | UNIX for Dummies Questions & Answers | 1 | 04-11-2008 05:02 AM |
| Output format - comparison with I/p file | velappangs | Shell Programming and Scripting | 1 | 04-03-2008 07:31 AM |
| file comparison script | tiger99 | Shell Programming and Scripting | 1 | 01-30-2008 10:47 AM |
| File Comparison | net_shree | Shell Programming and Scripting | 19 | 01-10-2008 08:00 PM |
| File Time Comparison Question | pc9456 | UNIX for Advanced & Expert Users | 2 | 07-23-2003 04:05 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
file comparison...help needed.
Hello all, Can anyone help me with this. There are two files and I have to match the second file records with that of first and if matched, print the output in two fies, one containing the matched records and other containing the rest. Here is the example. Code:
File1 "111",erter,"00000", ,"567" "gh6",erter,"00000", ,"567" "1t7",erter,"00000", ,"yu7" "yu8",erter,"00000", ,"5h7" -- -- -- Code:
file2 111 345 yu8 -- -- As can be seen 111 and yu8 matches with the first reord in file 1, so the whole row should be printed. Output should be Code:
file3 "111",erter,"00000", ,"567" "yu8",erter,"00000", ,"5h7" -- -- and file4 "gh6",erter,"00000", ,"567" "1t7",erter,"00000", ,"yu7" --- --- - Can anyone help me with this. Thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|