I can give the day for today in a command: TODAY=`date +%Y.%m.%d.`but how can I give out the next 3 or X days in a command? (Ubuntu 12.04)
How to write out the next 3 or X days with a command?
date
See the man page for the date command and look at the -d option: % date -d '+1 day' Mon Jul 15 21:51:06 PDT 2013 % date Sun Jul 14 21:51:16 PDT 2013 %I'd also suggest running: info datefor more explicit information.