find

作者: cdz620 | 来源:发表于2020-03-03 00:25 被阅读0次

多种模式查找

  • find . -name "_bang.sh" -o -name "_cate.sh" 查找后缀名为_bang.sh _cate.sh的文件

正则表达式查找

  • find . -type f -iregex '.*.py'

  • 涉及正则表达式不同平台不同的适配模式,emacs,posix之类的最好不要用这个命令

文件类型查找

  • find . -type f -name "*.sh"

  • type类型如下:

  • b block

  • c character

  • d dirctory

  • f regular file

  • l sysbolic link

  • p FIFO

  • s socket

相关文章

网友评论

      本文标题:find

      本文链接:https://www.haomeiwen.com/subject/rhedchtx.html