find . -newer han2.sh -print | wc -l
find . -newer han2.sh -type f -print | wc -l
find . \( -name "*1*" -or -newer eval.sh \) -type f -print
grep 的初步使用 grep 是 通用正则表达式解析器
grep in words.txtin there inthi I am good
Tom cintheschool fowloerhp@ubuntu:~/shel$ grep -c in words.txt
2
hp@ubuntu:~/shel$ grep -v in words.txt
hello world!
hp@ubuntu:~/shel$ grep -cv in words.txt
1
hp@ubuntu:~/shel$ more words.txt
hello world!
in there inthi I am good
Tom cintheschool fowloerhp@ubuntu:~/shel$
grep e$ words2.txt
grep a[[:blank:]] words2.txt
grep Th.[[:space:]] words2.txt
grep -E [a-z]\{10\} words2.txt
本文介绍了如何使用find命令结合特定参数进行文件搜索,并通过grep命令进行文本匹配操作。示例包括查找特定类型的文件、使用正则表达式过滤文本内容等。通过这些实用技巧,读者可以更高效地管理和分析文件系统中的数据。
801

被折叠的 条评论
为什么被折叠?



