Life Log & Rants

Tuesday, April 26, 2011

Get the previous date in month-dd-yyyy formation in unix

Another nifty command in Bash to do so in the required format of month-dd-yyyy

date -d 'yesterday' +%B-%d-%G

Other Formats are mentioned at http://unixhelp.ed.ac.uk/CGI/man-cgi?date
Posted by Chakra at 5:39 AM No comments:
Labels: bash, snippet
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Labels

  • arch
  • bash
  • bitbucket
  • ftp
  • howto
  • irc
  • irssi
  • linux
  • mercurial
  • setup
  • snippet
  • ssh
  • ubuntu
  • wget

Blog Archive

  • ►  2012 (1)
    • ►  July (1)
  • ▼  2011 (7)
    • ►  September (4)
    • ►  June (2)
    • ▼  April (1)
      • Get the previous date in month-dd-yyyy formation i...
  • ►  2010 (1)
    • ►  December (1)
Simple theme. Powered by Blogger.