![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
文章平均质量分 62
ht宝
努力成一个技术的汲取者成长为一个技术的传播者。
展开
-
shell 编程技巧,命令行执行循环。
教大家一个实用的小技巧,那就是在命令行中写一个死循环。while :; do df -h;sleep 2; ...; donedo 后面的命令可以自由更改,注意命令长度不能超过 ARG_MAX 即可。 $ getconf ARG_MAX2097152$ while :; do> ls> ls> sleep 2> done123 223 323 tests.c123 223 323 tests.c123 223 323 tests.c12原创 2022-03-01 09:22:09 · 3515 阅读 · 0 评论 -
总结shell 中各种括号的用法 () (())、[]、[[]]、{}
总结shell 中各种括号的作用本文旨在总结shell 中各种括号的作用,以及使用场景等。shell 中常见的括号有以下几种。() (())、[]、[[]]、{} 首先来介绍 () 以及 (())List item原创 2022-02-28 17:51:12 · 6487 阅读 · 0 评论 -
shell 编程基础——删除文件而不删除文件夹
最好的学习方法,莫过于从实践中学习。原创 2022-02-23 10:00:59 · 2000 阅读 · 0 评论