Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-26 Thread Chris Ball
>> On Mon, 26 Sep 2005 09:28:12, Chris Devers <[EMAIL PROTECTED]> said: > There's a canned retort in here about those who fail to learn from > rsync will end up reinventing it, badly, but I can't quite find the > witty version I'm looking for (and, for that matter, I can't quite >

Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-26 Thread Chris Devers
On Mon, 26 Sep 2005, Tolkin, Steve wrote: > No. I actually use the freeware version program syncback at > http://www.2brightsparks.com/downloads.html to do backup, and I think > it uses rsync (or similar) internally. But I do not just want to do a > full restore. I want to see what will be

Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-26 Thread Tolkin, Steve
Message- From: Ben Tilly [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 5:52 PM To: Tolkin, Steve Cc: Jeremy Muhlich; boston-pm@mail.pm.org Subject: Re: [Boston.pm] script to "normalize" output of Windows dir command On 9/23/05, Tolkin, Steve <[EMAIL PROTECTED]> wr

Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-23 Thread Ben Tilly
On 9/23/05, Tolkin, Steve <[EMAIL PROTECTED]> wrote: > I do have a port of Unix find on my current Windows machine. > But I do not have that on the machine I back up to (my wife's), so I > would need to install that, and its dependencies, which makes me > reluctant to take that approach. Are you

Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-23 Thread Kripa Sundar
Dear Steve, > Also date and time are combined into three fields, but the third is > either time or year. This makes it harder to process. I would actually > prefer time in seconds since the start of the Unix eon. IMHO, File::Find and stat() should solve your problems. The following is a

Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-23 Thread Tom Metro
Jeremy Muhlich wrote: > Also, diff -r might be helpful. ... I'd strongly second that recommendation. I often use diff on Windows to verify file systems, such as burned CDs. (And prior to a diff port being available, I had a home brew script written in Perl that compared the checksum of files

Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-23 Thread John Abreau
On Fri, 23 Sep 2005, Tolkin, Steve wrote: > Here are a few lines from the output of > \bin\find -print -ls > > 945730 drwxr-xr-x 6 a071046 Administ0 Sep 21 15:05 ./ant > ./ant/bin > 951240 drwxr-xr-x 2 a071046 Administ0 Sep 21 15:05 > ./ant/bin > ./ant/bin/ant >

Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-23 Thread Tolkin, Steve
alf Of Jeremy Muhlich Sent: Friday, September 23, 2005 12:19 PM To: boston-pm@mail.pm.org Subject: Re: [Boston.pm] script to "normalize" output of Windows dir command How about the unix "find" command, with the -printf option? You can get it through cygwin. Taking find's outpu

Re: [Boston.pm] script to "normalize" output of Windows dir command

2005-09-23 Thread Jeremy Muhlich
How about the unix "find" command, with the -printf option? You can get it through cygwin. Taking find's output (even without -printf) from two directories and diffing it has gotten me through most of these sorts of problems. Also, diff -r might be helpful. (possibly with the --brief option as

[Boston.pm] script to "normalize" output of Windows dir command

2005-09-23 Thread Tolkin, Steve
Summary: I would like a perl script that converts the output of the Windows dir command so that each line has the same format, including the directory it is in, and its extension. The date and time should use a format that can be sorted as a string, e.g. -mm-dd and a 24 hour clock I think