Hi Guys, I have a cgi which automates the task of zipping up a complete directory and its sub directories:
echo "Content-type: text/html" echo "" echo "<html><head></head>" echo "<body>" echo "Building tar file...<br />" echo "<tt>" cd /var/www/html/ for type in test; do filen=${type//\//-} echo "<br /><b>Building ${filen}.tgz</b> <br />" tar cvfz files/${filen}.tgz --sparse ${type} echo "<br />" echo "See <a href='/files/${filen}.tgz'>/files/${filen}.tgz</a>. <br />" done; echo "</tt><br />" echo "Done." echo "</body></html>" Now I want to add the current date to the name of the zipped up file i.e. to the variable named 'filen' in the above script... Is there any date function in shell scripting which can solve this problem? Kindly suggest. Regards Kamal -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>