分页: 1 / 1

关于find命令的两个问题

发表于 : 2008-11-29 9:47
bearscafe
1. find使用的正则表达式的语法和perl中的正则表达式的语法有什么不同?到哪里可以查到两者间的不同语法的列表?

2. 怎样使用find命令找到当前目录下所有文本文件(也就是非二进制文件)?

Re: 关于find命令的两个问题

发表于 : 2008-11-29 16:01
xhy

代码: 全选

       -regextype type
              Changes  the  regular  expression  syntax  understood by -regex and -iregex tests which occur later on the command
              line.  Currently-implemented types are emacs (this is the default), posix-awk, posix-basic, posix-egrep and posix-
              extended.


第二个问题无解

Re: 关于find命令的两个问题

发表于 : 2008-11-29 16:29
alinmn
第二个可以结合"file"试试