![]() |
|
|
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 |
| du from list with du of list total | Movomito | Shell Programming and Scripting | 3 | 05-04-2008 10:33 PM |
| Comparing 2 list and deleting deuplicate entries | eltinator | Shell Programming and Scripting | 10 | 08-15-2007 02:35 PM |
| how to generate a random list from a given list | mskcc | Shell Programming and Scripting | 3 | 05-30-2006 04:30 AM |
| how to list dir only | stephettt | UNIX for Dummies Questions & Answers | 2 | 02-22-2004 11:34 AM |
| Comparing data list... | giannicello | UNIX for Dummies Questions & Answers | 4 | 03-06-2003 01:08 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Comparing a distinct value in 1 list with another list
Hi all,
I need to compare the contents of 2 directories where the file contents are similar and take out the filenames whose contents does not exist within the 2 directories. Directory1 1 2 3 4 Directory2 54 55 56 57 Does anyone has a script which can do this? At the end of the command, all the files that does not exist when comparing the 2 directories should be cp -p to another new directory. Thanks. |
|
||||
|
Hi Joerg,
Thanks for your advice, but the filenames are totally different, however the content is the same, in this case, how would i go about doing it? There are 800+ files in one directory and 500+ in one directory, i know for sure that about 200+ do not share the same contents and i want to move them to another directory. Regards, Alvin |
|
||||
|
Hi Joerg,
No the only thing that is the same is the xml file contents, i need to compare the file contents in one directory with the other directory. Do you know of a script which can do that? Regards, Alvin s the timestamp of the file in side the first directory the same as in the second directory. Please give us a output of the ls -la command for both directorys. Which kind of contense it is? regards joerg |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|