摘要: 一、find命令 1、find -name “*.txt” 查找所有txt文件 2、find -name "[a-z]*" 查找所有以字母开头的文件 3、find /etc -name ".txt" 查找etc目录下以txt结尾的文件 4、find . -perm 775 查找当前目录下权限为775 阅读全文
posted @ 2018-07-16 13:22 糖豆粑粑 阅读(92) 评论(0) 推荐(0)
摘要: 一、shell脚本中的循环 1、while 例如:while [ x -lt 10 ];do echo $x done 2、for 例如:for i in 1 2 3;do echo$i done for循环还可以循环文件: for i in (cat 1.txt); do echo "xxx" d 阅读全文
posted @ 2018-07-16 13:16 糖豆粑粑 阅读(97) 评论(0) 推荐(0)