#!/bin/bash
touch $1.sh
echo "#!/bin/bash " >> $1.sh
echo "#Name:" >> $1.sh
echo "#Desc:" >> $1.sh
echo "#Usage:" >> $1.sh
echo "#Path:" >> $1.sh
echo "#Update:" >> $1.sh
vim $1.sh
chmod u+x $1.sh
mv $1.sh $1
转载请注明原文地址:https://ipadbbs.8miu.com/read-1201.html