Jelajahi Sumber

find -path option

Eliot Sykes 9 tahun lalu
induk
melakukan
2038fc0f13
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      pages/common/find.md

+ 4 - 0
pages/common/find.md

@@ -6,6 +6,10 @@
 
 `find {{root_path}} -name {{'*.py'}}`
 
+- find files matching path pattern
+
+`find {{root_path}} -path {{'**/lib/**/*.py'}}`
+
 - run a command for each file, use {} within the command to access the filename
 
 `find {{root_path}} -name {{'*.py'}} -exec {{wc -l {} }}\;`