Shell scripts to Create a local dir base on the time.
#!/bin/bash DATETIME=`date +%Y%m%d%H%M%S` echo "datetime = $DATETIME" mkdir $DATETIME # cd $DATETIME tar czf $DATETIME.tar.gz testdir echo "completed."
#!/bin/bash DATETIME=`date +%Y%m%d%H%M%S` echo "datetime = $DATETIME" mkdir $DATETIME # cd $DATETIME tar czf $DATETIME.tar.gz testdir echo "completed."