View Single Post
  #2  
Old March 3rd, 2006, 04:37 PM
tomdkat's Avatar
tomdkat tomdkat is offline
Registered User
 
Join Date: Aug 2005
Posts: 211
Thanks: 12
Thanked 0 Times in 0 Posts
tomdkat is on a distinguished road
Try using the date command, like this:

$ mkdir test-`date +%F`-dir
$ dir -ld test*
drwxrwxr-x 2 tom tom 4096 Mar 3 14:26 test-2006-03-03-dir
$

Read the man page on the various formatting options and specify them after the "+" sign as appropriate. Be sure to keep the single quote marks (`), as I have in my example above, as they instruct the shell to run the command enclosed in them and substitute the output in place where the command appears.

Good luck!

Peace...
Reply With Quote