Jim Cunning wrote: > The simplest way to compare the timestamps of two files is to use a > shell conditional expression with the '-ot' primary. (See "man bash" for > more information.) For example, > > if [ file1 -ot file2 ]; then > echo "file1 is older than file2" > fi Exactly what I was looking for. The find thing got pretty ugly and the logic gave me a headache :) Thanks Bret -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
- compare file timestamps in script? Bret Hughes
- Re: compare file timestamps in script? Steve Borho
- Re: compare file timestamps in script? Jim Cunning
- RE: compare file timestamps in script? Bret Hughes
- RE: compare file timestamps in script? Gregory Hosler