Need scripting help!!
Can someone tell me how to pass today's julian date to the mkdir function to create a julian date folder. I have seen several posts showing something like the following:
DATE="date '+%j'" or some simple variation. All I get is a folder named date or +%j. Am I missing something? Thanks, Stan |
I assume DATE is the name of the new directory you want to create, hence
Code:
mkdir $DATE Code:
DATE=`date +%j` jlinkels |
Many thanks. I somehow new it would be something easy that I missed.
|
Why introduce a variable, though? :}
mkdir `date +%Y%m%d` Cheers, Tink |
Quote:
|
Quote:
Cheers, Tink |
All times are GMT -5. The time now is 07:04 AM. |