linux:shell脚本格式

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
posted @ 2014-04-08 12:06  Mr√liu  阅读(470)  评论(0)    收藏  举报