This should do it: date --date "1 month ago" +%B Cheers,
Scott -- Scott Ragen Support Manager/IT Administrator Roadtech Systems www.roadtechsystems.com.au PH: +61 2 9807 3516 FAX: +61 2 9808 5294 [EMAIL PROTECTED] wrote on 10-01-2003 09:44:18 AM: > > Hay guys, > > I was wondering if there was a parameter for the date command that would > return the output of last month. > > i.e. date +%B would return " January" which is the current month. > > But i want it to return is December , this is easily done in sql with a -1 > on the end of the date command but i have yet to find an equivalent > parameter for Linux.. eeek help. > > Andrew Wilson > > > > Netway Networks Pty Ltd > (T) 8920 8877 > (F) 8920 8866 > > > -- > SLUG - Sydney Linux User's Group - http://slug.org.au/ > More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
