[SOLVED] directory with timestamp
by 1s440 from LinuxQuestions.org on (#5GSDS)
Hi all,
I am trying to create a directory with stamp in the shell script and then i want to dump all the files in to it.
When i write like this,i always get an error saying that No such file or directory found.
Code:#create directory
dir = /temp/local/ssm
echo "creating a directory with timestamp"
dir=$dir/mkdir $(date +"%Y-%m-%d")Can anyone quickly suggest


I am trying to create a directory with stamp in the shell script and then i want to dump all the files in to it.
When i write like this,i always get an error saying that No such file or directory found.
Code:#create directory
dir = /temp/local/ssm
echo "creating a directory with timestamp"
dir=$dir/mkdir $(date +"%Y-%m-%d")Can anyone quickly suggest