[Gllug] Arithmetic error in bash on 08 and 09?

Liam Delahunty liamvictor at gmail.com
Mon Jul 26 22:07:56 UTC 2004


On Mon, 26 Jul 2004 13:46:21 +0100, Holger Duerer <hduerer at gmx.net> wrote:
> If you have GNU's date (I don't think the others have, but please
> correct me if I am wrong), you could of course also let date do the
> calculation itself:
> 

Beautiful. I used:

previous=$(date --date "1 hour ago" "+%b %d %H")

for the log file grep.


-- 
Kind regards, Liam Delahunty
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list