LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mkdir with the date (https://www.linuxquestions.org/questions/linux-newbie-8/mkdir-with-the-date-810129/)

kma07 05-25-2010 11:28 PM

mkdir with the date
 
Hi guys

How do I make a directory with the date in this format:

YYYYMM
201005

Tinkster 05-26-2010 12:10 AM

Code:

mkdir $(date "+format string")
Read "man date" for details.



Cheers,
Tink


P.S.: Why did you mark it solved before there
was an answer/solution?

kma07 05-26-2010 11:40 PM

Thanks

I worked it out after I made the thread sorry


All times are GMT -5. The time now is 02:49 PM.