The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to get Previous date in this format.
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to get Previous date in this format.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
07-22-2008
fpmurphy
Moderator
Join Date: Dec 2003
Location: Florida
Posts: 1,941
If you are using ksh93
Code:
$ printf "%(%b %d)T\n" "yesterday" Jul 21 $
fpmurphy
View Public Profile
Visit fpmurphy's homepage!
Find all posts by fpmurphy
Find fpmurphy's past nominations received
Find fpmurphy's present nominations given