On May 7, 2007, at 12:13 PM, David Liontooth wrote:

This is very cool, as it allows my scripts to be crossplatform.

Sort of: on OS X you'll need to test for that and use gdate.

tichy:~ paul$ DAY="$(gdate -d "-7 day" +%F)"
tichy:~ paul$ echo $DAY
2007-04-30

--
Paul Beard
words: http://paulbeard.org/wordpress
pictures: http://www.flickr.com/photos/pdb206/
Are you trying to win an argument or solve a problem?


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to