Look at the man pages for "date" to see the myriad ways of expressing the date. You can use this command in a script like this. Say you want to run something and save the output to a file with today's date as the extention you could do this:
cat foo > foobar.`date +%j` those are backticks not single quotes, and there is a space between date and the +%j
This would put the output of your command in a file called
foobar.162 d3funct
zimmer.jon@cfwy.com
The software required `Windows 95 or better', so I installed Linux.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.