linux guru
Friday, March 2, 2012
linux date command fields without zeros
With zero
root@li60:~/security# date --date "1 day ago" "+%b %d"
Mar 01
Without zero
root@li60:~/security# date --date "1 day ago" "+%b %-d"
Mar 1
1 comment:
Anonymous
July 11, 2012 at 4:05 AM
You can find more examples on date command at:
Date command examples in linux
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Ruby on Rails Paperclip tutorial - rails 4.0.3, Ruby 2.1, Paperclip 4.1.1
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
How to reactivate your SSL
How to reactivate your SSL https://www.ssls.com/
jpgraph: The function imageantialias() is not available
error message: Fatal error: Call to undefined function imageantialias() in /var/www/vhosts/bar.php on line 13 The function imageantialia...
You can find more examples on date command at:
ReplyDeleteDate command examples in linux