![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
文章平均质量分 84
江湖一分
接受一个现实:我不是个聪明的人。坚持一分 路漫漫其修远兮,吾将上下而求索。做任何事情,有节奏而不急于求成,只要一步步努力,到最后一切都会水到渠成。虚心向别人讨教,怀疑权威,打造自己。
展开
-
shell 判断文件是否存在,-e or -f ?
Sometimes, we have met issue how to check whether one file exists using shell script. you use "-e" or "-f" ? the two of them have some different which may mislead you if you don't know their exact us...原创 2018-08-10 17:14:29 · 3473 阅读 · 0 评论 -
shell 实用tips, sed,grep正则表达式
最近用shell做个小工具,发现很多东西在使用的时候,反而没有那么清楚的印象。总结一下最近的小技巧,希望拯救下自己就贫瘠的记忆 1. shell [[]]判断后,多条语句 && 2. shell 清空文件: way 1: echo "" >$file 不好,会多一行空白行 way 2: > $file 好,解决了way1的问题 3. re...原创 2019-05-02 23:06:46 · 127 阅读 · 0 评论