在Find中使用正则表达式(CentOS 6.7)

时间:2016-04-14 20:36:55

标签: regex centos find

如何在find命令中使用正则表达式\w{7}[D]\w{6}$

1 个答案:

答案 0 :(得分:0)

您可以尝试:

find -regextype posix-extended -regex 'YOUR REGEX'

-regextype选项包括:

findutils-default, awk, egrep, emacs, gnu-awk, grep, posix-awk, posix-basic, posix-egrep, posix-extended

<强>参考文献:

Find Utils Manual (CentOS)