关于find命令的两个问题

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
bearscafe
帖子: 694
注册时间: 2007-05-05 23:11

关于find命令的两个问题

#1

帖子 bearscafe » 2008-11-29 9:47

1. find使用的正则表达式的语法和perl中的正则表达式的语法有什么不同?到哪里可以查到两者间的不同语法的列表?

2. 怎样使用find命令找到当前目录下所有文本文件(也就是非二进制文件)?
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

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

#2

帖子 xhy » 2008-11-29 16:01

代码: 全选

       -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命令的两个问题

#3

帖子 alinmn » 2008-11-29 16:29

第二个可以结合"file"试试
回复