> NAME=$(date +"%x %r %Z") > echo $NAME > cat /home/taproot/htmtest > /home/taproot/$NAME You need quotes around "/home/taproot/$NAME", because you have spaces in your name. You might consider using: NAME=$(date +"%x-%r-%Z") Rob