bash 技巧

  

 

  1. 分行查看PATH
    echo -e ${PATH//:/'\n'}
    

      

  2. ${param-value}

    有时候,会看到 这种 用法 

    后跟 - 的目的是为了防止引用未设置的变量时报错


     

     

  3. nocaseglob nocasematch

     

     

     

posted @ 2021-07-16 10:49  ascertain  阅读(37)  评论(0)    收藏  举报