Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Get yesterday's date on the terminal, mac os x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get yesterday's date on the terminal, mac os x



Tried this command to get the yeterday's date.

date -v -1d +"%Y%m%d"

But did not work..

date: illegal option -- v
usage: date [-nu] [-r seconds] [+format]
       date [[[[[cc]yy]mm]dd]hh]mm[.ss]

How can i get yesterday's date?

--
Louie Miranda
http://www.axishift.com -- under development
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.