[Gllug] Most Recent File

Peter Grandi pg_gllug at gllug.for.sabi.co.UK
Tue Nov 22 23:57:10 UTC 2005


>>> On Tue, 22 Nov 2005 13:35:23 +0000, Steve Nelson
>>> <sanelson at gmail.com> said:

sanelson> [ ... ] A better one would be "since 17.37 last
sanelson> Wednesday when fred logged in and made a number of
sanelson> changes". [ ... ]

Great are the powers of 'date'(1)! :-)

  THEN="`date +'%s' -d 'last friday 17:37'`"; NOW="`date +'%s'`"
  find "$DIR" -mmin "`expr '(' \"$NOW\" - \"$THEN\" ')' / 60`"

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list