The syntax is:
- Use extended regular expressions: grep -E 'pattern1|pattern2' *.py
- Try on older Unix shells/oses: grep -e pattern1 -e pattern2 *.pl
- Another option to grep two strings: grep 'word1\|word2' input
ZhangZhihui's Blog |
|
||
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |