Re: Variation of "diff -qr" to compare file sizes/dates between file tree?
- From: conrads@xxxxxxxxxxxxxxxx (Conrad J. Sabatier)
- Date: Sat, 28 Jan 2006 05:34:00 GMT
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"
.
- Follow-Ups:
- Re: Variation of "diff -qr" to compare file sizes/dates between file tree?
- From: Dubious Dude
- Re: Variation of "diff -qr" to compare file sizes/dates between file tree?
- References:
- Variation of "diff -qr" to compare file sizes/dates between file tree?
- From: Dubious Dude
- Variation of "diff -qr" to compare file sizes/dates between file tree?
- Prev by Date: Lookup between 2 files ( korn shell )
- Next by Date: Re: Lookup between 2 files ( korn shell )
- Previous by thread: Variation of "diff -qr" to compare file sizes/dates between file tree?
- Next by thread: Re: Variation of "diff -qr" to compare file sizes/dates between file tree?
- Index(es):
Relevant Pages
|