linux guru
Friday, June 17, 2011
shell script get yesterday yyyymmdd format
#!/bin/bash
yesterday=`/bin/date --date="-1 days" +%Y%m%d`
echo $yesterday
One_month_ago=`/bin/date --date="-30 days" +%Y%m%d`
echo $One_month_ago
No comments:
Post a Comment
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/
transmission 403 unauthorized ip address
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...
No comments:
Post a Comment