Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
free Britney
SUBMITTED BY:
Guest
DATE:
Dec. 14, 2013, 12:20 p.m.
FORMAT:
Text only
SIZE:
546 Bytes
Raw
Download
Tweet
HITS:
1403
Go to comments
Report
date_dir=`date +%Y-%m-%d -d yesterday`
echo "$date_dir"
var=`date +%s`;
date=`date --date=@$var +%Y-%m-%d`
echo $date
$ date +%Y-%m-%d -d '-42 days' # This would subtract 42 days from the current date
2013-10-30
$ date +%Y-%m-%d -d '+42 days' # This would add 42 days to the current date
2014-01-22
$ date_dir=$(date +%Y-%m-%d -d '-42 days')
$ echo $date_dir
2013-10-30
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus