O'Reilly logo
  • QIAN Weishuo thinks this is interesting:

find . -regex '.*\.(py\|sh\)$'

From

Cover of Linux Shell Scripting Cookbook - Third Edition

Note

这里写错了 (要和) 配对
有的符号需要转义,例如 ( ) \|
而 . * $ 不用