Re: Variation of "diff -qr" to compare file sizes/dates between file tree?



In article <dre18p$10e$1@xxxxxxxxxxxxxxxxxx>,
Dubious Dude <Shifty@xxxxxxxx> wrote:
>
>
>I created a CD volume that backs up some of my laptop. After some
>time has past, I'd like to check what files need freshening up i.e.
>what files on the laptop either have no counterpart on the CD, or
>which have changed from its counterpart on the CD. I am running
>Cygwin on Windows 2000, so I have access to unix-like (gnu) commands.
>I've typically run "diff -qr" to find differences between the file
>hierarchies on the CD and the hard drive. However, this does a
>bit-by-bit compare, which is way more intensive than what I'm looking
>for, and takes way too long. I want to check only the size and date
>of nondirectory files. Basically emulate a human being looking at a
>directory listing. Sometimes, the permissions on the CD differ from
>that on HD, but I'm not worried about that.

Does Cygwin have a "stat" command? This can be used to return only the
information you want about a file.

For example:

serene:conrads:/bin$ stat -f "%Sa %8z %N" *
Jan 26 06:43:14 2006 11304 [
Jan 27 23:30:00 2006 11208 cat
Jan 27 12:32:08 2006 7304 chflags
Jan 25 10:19:53 2006 17128 chio
(output truncated)

This, in combination with find/xargs, should do the trick nicely, I would
think.
--
Conrad J. Sabatier <conrads@xxxxxxx> -- "In Unix veritas"
.



Relevant Pages

  • Re: Copying Files Problems
    ... "Pegasus (MVP)" wrote: ... in size back and forth between shared folders on my laptop and PC. ... Using the same commands, except changing the ...
    (microsoft.public.windowsxp.general)
  • Re: Copying Files Problems
    ... "Pegasus (MVP)" wrote: ... in size back and forth between shared folders on my laptop and PC. ... Using the same commands, except changing the ...
    (microsoft.public.windowsxp.general)
  • Re: Cant get Network sharing to work
    ... I could not get browstat. ... First link no good, second required a ... I ran the the commands in a command window and all seemed okay ... Right now the XP laptop "sees" the Desktop but cannot access it. ...
    (microsoft.public.windows.vista.networking_sharing)
  • RE: Cant tell if I have been hacked :(
    ... commands and got a input/output error. ... if it was a laptop or not, so I thought I would mention the possibility. ... I am aware that this should not be able to happen on an ext3 file system. ...
    (Fedora)
  • Re: Desktop to Laptop - remote access and sending messages
    ... "Pegasus (MVP)" wrote: ... Type one or both of these commands: ... I have a desktop and a laptop both running Windows XP. ... You can create a pop-up message with the "net send" command, ...
    (microsoft.public.windowsxp.general)