Kaynağa Gözat

find -path option

Eliot Sykes 9 yıl önce
ebeveyn
işleme
2038fc0f13
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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 {} }}\;`