Re: directories comparision



In <q22e8dijqc1g$.1tf2vvub3wvbz$.dlg@xxxxxxxxxx> nawfer <novalidsforspam@xxxxxx> writes:

is possible with a command or only with external tool?

That depends on what you mean by "compare directories". Are you
comparing only filenames? Dates and sizes? Subdirectories?

If you're just comparing filenames, then you could do a simple ls on
each directory, save those results to a file, and run "diff" on the two
files.

--
John Gordon A is for Amy, who fell down the stairs
gordon@xxxxxxxxx B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"

.



Relevant Pages

  • Re: directories comparision
    ... That depends on what you mean by "compare directories". ... If you're just comparing filenames, then you could do a simple ls on ... Note that that feature comes from ksh and can be ...
    (comp.unix.questions)
  • Re: directories comparision
    ... That depends on what you mean by "compare directories". ... If you're just comparing filenames, then you could do a simple ls on ... each directory, save those results to a file, and run "diff" on the two ...
    (comp.unix.questions)
  • Re: Recursive comparing of files
    ... with various subdirectories and files inside. ... sort and compare lists, look for pairs of files with ... It will searche the given path for duplicate files. ... Such files are found by comparing file sizes and MD5 signatures, ...
    (Fedora)
  • Compare files in directory trees - how?
    ... Is there a simple way of comparing files in ... two directory trees which may have zero or more ... files and/or subdirectories in addition to those in directory_a. ...
    (comp.os.linux.misc)