1. find使用的正则表达式的语法和perl中的正则表达式的语法有什么不同?到哪里可以查到两者间的不同语法的列表?
2. 怎样使用find命令找到当前目录下所有文本文件(也就是非二进制文件)?
关于find命令的两个问题
- bearscafe
- 帖子: 694
- 注册时间: 2007-05-05 23:11
- xhy
- 帖子: 3916
- 注册时间: 2005-12-28 1:16
- 系统: Ubuntu 12.10 X64
- 来自: 火星
Re: 关于find命令的两个问题
代码: 全选
-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.
第二个问题无解
目前负债150多万
- alinmn
- 帖子: 185
- 注册时间: 2006-05-19 21:42
- 来自: NIT
Re: 关于find命令的两个问题
第二个可以结合"file"试试