For example, some like this: dir=`date| awk '{print $1 "-" $2 "-" $3 "-" $4}'` mkdir $dir Best regards Llorens -----Mensaje original----- De: redhat-list-admin@xxxxxxxxxx [mailto:redhat-list-admin@xxxxxxxxxx] En nombre de EmbraceThePenguin Enviado el: lunes, 17 de noviembre de 2003 17:42 Para: redhat-list@xxxxxxxxxx Asunto: Bash Scripting Assistance Hello All, I wish to create a script that will copy the contents of a directory to another location. Not a big deal at all, however, prior to copying the data, I want to the script to mkdir a directory for the new data and I want the directory name to be the date and time stamp of the time the copy happened. I wish to use this script in a cron job. How would I go about creating a folder using the current time and date? Thanks much for the assistance Joe -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list