Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1. find 文件查找 正则匹配有误 #45

Closed
Vauke opened this issue Oct 23, 2019 · 0 comments
Closed

3.1. find 文件查找 正则匹配有误 #45

Vauke opened this issue Oct 23, 2019 · 0 comments

Comments

@Vauke
Copy link

Vauke commented Oct 23, 2019

正则方式查找.txt和pdf:
find . -regex ".*\(\.txt|\.pdf\)$"

这里的正则应该为find . -regex ".*\(\.txt\|\.pdf\)$"

@Vauke Vauke closed this as completed Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant