#! /bin/sh
NowDateTime=$(date +%Y%m%d%H%M%S)
mkdir -p $NowDateTime
cp Makefile $NowDateTime/
cd $NowDateTime
vim test.c
if [ ! -f test.c ]
then
cd ..
rm -r $NowDateTime
fi
[代码实例][Bash]创建时间相关的目录
最新推荐文章于 2021-04-29 07:10:20 发布