> Take a look at "diff" - it provides an option "-r" that traverses > subdirectories. So if you use "diff -rsq <location of the > directory on the mounted dvd> <location of the directory on > disk>", you will get a list of files that only exist on one or the > other side, that are identical or which files differ (without > showing the difference). This list could then be piped into > "grep" with some clever patterns and then be fed into "rm" > to delete them (gotta love Unix). Example: > > $ find . > . > ./A > ./A/fileC > ./A/fileA > ./A/fileD > ./A/fileB > ./B > ./B/fileC > ./B/fileA > ./B/fileB > $ diff -rsq A B > Files A/fileA and B/fileA are identical > Files A/fileB and B/fileB differ > Files A/fileC and B/fileC are identical > Only in A: fileD > $ diff -rsq A B | grep "are identical" > Files A/fileA and B/fileA are identical > Files A/fileC and B/fileC are identical > $ diff -rsq A B | grep "are identical" | cut -f2 -d" " > A/fileA > A/fileC > > (this of course assumes that file names don't include spaces, > otherwise you may have to come up with a more elaborate > script. > > Also, the "samefile" utility might come in handy, it compares > files and detects duplicates, even if they have a different > name. You can get a package from my home:LenzGr > repository on the openSUSE build service. > > Bye, > LenZ
Thank you. If I cant't find a proper GUI I will try the command line. I also will check 'samefile' as I may need it for other purposes. IG Világbajnok árak! Váltson most olcsóbb KÖTELEZŐRE! ________________________________________________________ http://www.biztositas.hu/origo_aloldal/okgfb_rovat -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
