
shell脚本编程
文章平均质量分 88
奔跑吧小蜗牛
志存高远,脚踏实地。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux 实用命令汇总
查找某个目录下最大的10个文件 find . -type f -print0 | xargs -0 du -h | sort -rh | head -n 10 注:-print0的目的是为了避免查找的文件中文件名包含空格会引起后续的xargs命令出现问题。-print0和xargs后面的-0是对应的。 ...原创 2019-12-04 16:17:52 · 360 阅读 · 0 评论 -
shell编程基础——分支结构
shell编程基础——分支结构基本语法1、if-then语句if command then commands fi2、if-then-else语句if command then commands else commands fi3、嵌套if语句if command then commands elif command2 then command原创 2016-06-23 20:59:35 · 780 阅读 · 0 评论