#!/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."
2023-10-07 22:41:34
#!/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."