Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2009 22:20:04 GMT
From:      Jilles Tjoelker <jilles@stack.nl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/57054: let test(1) compare the mtime of a file to a string
Message-ID:  <200905302220.n4UMK4Sn046330@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/57054; it has been noted by GNATS.

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, joost@bps.jodocus.org
Cc:  
Subject: Re: bin/57054: let test(1) compare the mtime of a file to a string
Date: Sun, 31 May 2009 00:16:54 +0200

 You can already do this using a command like
 [ -n "$(find "$file" -prune -newermt '4 days ago')" ]
 This can also be adapted to compare access, inode change and inode birth
 (UFS2) times.
 
 Yet another way is to touch(1) a temporary file and then use the -nt or
 -ot primaries in test(1) with that.
 
 -- 
 Jilles Tjoelker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905302220.n4UMK4Sn046330>