世界上最短的bash脚本长这样:
#!/bin/bash
为啥呢?见下图:
推荐一篇文章,讲解为啥shell脚本开头总是"#!/bin/bash"。文风太清奇,不好翻译,看原文吧:
https://blog.twentytwotabs.com/the-smallest-bash-program-in-the-universe/
世界上最短的bash脚本长这样:
#!/bin/bash
为啥呢?见下图:
推荐一篇文章,讲解为啥shell脚本开头总是"#!/bin/bash"。文风太清奇,不好翻译,看原文吧:
https://blog.twentytwotabs.com/the-smallest-bash-program-in-the-universe/