[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: script using file dates
From: |
marquis |
Subject: |
RE: script using file dates |
Date: |
Wed, 5 Sep 2007 20:04:06 -0700 (PDT) |
TMP=`ls -Aa` ; for x in $TMP ; do echo -n "$x - " ; stat $x | tac | head -1 ;
echo "" ; done
> I'm looking for an exisiting script, or a command to help w/ processing
> files
> by date. I have a test website and need to upload only the files that
> have
> been changed since the last upload. I'm thinking of creating a file list
> and the date of the last upload. if the modified date is after the date
> in
> this file, it would upload. Has anyone seen a script to do this? i found
> "test -nt" and "test -ot" but this is to compare two file dates, not a
> file
> to a stored date. ideas? thanks
> -
> View this message in context:
> http://www.nabble.com/script-using-file-dates-tf4269542.html#a12151695
> Sent from the Gnu - Bash mailing list archive at Nabble.com.
Marquis
--
View this message in context:
http://www.nabble.com/RE%3A-script-using-file-dates-tf4389413.html#a12514832
Sent from the Gnu - Bash mailing list archive at Nabble.com.
- RE: script using file dates,
marquis <=