shell脚本格式:
#!/bin/bash //第一行指定bash
命令群。。。。。
例子:
#!/bin/bash
DESCDIR='/tmp/test'
mkdir ${DESCDIR}
touch ${DESCDIR}/file-`date +%F-%H-%M-%S`
cp -r /etc/profile.d/ ${DESCDIR}
unset DESCDIR
linux:shell脚本格式
转载于:https://www.cnblogs.com/liuensong/p/10140365.html