On Wednesday 03 June 2009 04:03:14 pm Polytropon wrote: > I'm looking to an existing way to output a date in the format > YY/DDD, where YY is the year (last two digits) and DDD is the > of the year, starting from 1, preceeded by zeroes if needed, > and YYYY/DDD, where YYYY is the year with four digits, such > as 2009-01-01 would be 09/001, 2009-02-01 would be 2009/032.
Like this? $ date +'%y/%j' 09/154 $ date +'%Y/%j' 2009/154 -- Kirk Strauser _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"