![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Order files by create date | mab_arif16 | Shell Programming and Scripting | 4 | 05-15-2006 01:04 PM |
| Copying Files in the same order along with time stamps | shyam.appalla | Shell Programming and Scripting | 2 | 12-04-2005 10:44 AM |
| list of files in date order | Jeannine | UNIX for Dummies Questions & Answers | 2 | 08-15-2005 02:19 PM |
| Listing files in numerical order | Steve_H | Shell Programming and Scripting | 3 | 02-22-2005 10:52 AM |
| lp - order of files printed | mabrownawa | UNIX for Advanced & Expert Users | 2 | 02-16-2004 12:08 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I have two master files which contain the information for many jobs like this Job no:1 a b c d Job no:1 d e g h Job no:2 t j s h Job no:2 t j s h I have written a script to pick up all the information for Job no:1 from file1 and put that to a temporary file and do the same from file2 and put it to a temporary file. Then i will compare this two temporary files using diff. If they dont match print the information for that Job from both the master files in to one output file.After the comparison is done for one job,i will read the information for the next job and compare. Here the problem is if the order of the information for Job number changes like this In file1 i have Job no:1 a b c d Job no:1 d e g h In file 2 i have Job no:1 d e g h Job no:1 a b c d Here diff would fail even though there is no mismatch except the order has changed which is not an issue. Is there any other way to read the information for a particular job from file one and then print out that to a file. Then do the same for the information from file2.Then compare.If they are same leave it else print information from both the master files to the output file. Last edited by ragavhere; 06-04-2008 at 04:07 PM.. Reason: Question not clear |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|