That didn't work for me. I did figure it out by doing:
[EMAIL PROTECTED] todd]$ datedir=`date +%Y%m%d%H%M%S`;
[EMAIL PROTECTED] todd]$ echo tomcat$datedir
tomcat20030718215657
You are using the backticks (the shift+tilde) and not the single
quote? Using bash?
Works here, too. (on my
On Fri, 18 Jul 2003 22:59:53 -0700
Eric Huff [EMAIL PROTECTED] wrote:
That didn't work for me. I did figure it out by doing:
[EMAIL PROTECTED] todd]$ datedir=`date +%Y%m%d%H%M%S`;
[EMAIL PROTECTED] todd]$ echo tomcat$datedir
tomcat20030718215657
You are using the backticks (the
I am trying to create a directory with a datetime stamp as part of the
directory name. This is for backup purposes so I know when a directory is
backed up.
This is what I am trying to do on the commandline:
datedir= date +%Y%m%d%H%M%S
mkdir /tomcat$datedir
But, all I get is /tomcat. I do a
On Fri, Jul 18, 2003 at 11:43:05AM -0600, Troy Davidson wrote:
I am trying to create a directory with a datetime stamp as part of the
directory name. This is for backup purposes so I know when a directory is
backed up.
This is what I am trying to do on the commandline:
datedir= date
That didn't work for me. I did figure it out by doing:
datedir=$(date +%Y%m%d%H%M%S)
echo $datedir
20030717161622
Thanks for the help though.
Troy Davidson
Linux User #311107
++
Follow the adventures of a
real life computer and
gaming nerd!