Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. find . -path "*/trunk/src/*.h"
  2. find . -path "*/trunk/src/*.cpp"
  3.  
  4. find . -path '*/trunk/src/*.h' -o -path '*/trunk/src/*.cpp'
  5.  
  6. find . -path '*/trunk/src/*' ( -name '*.h' -o -name '*.cpp' )
  7.  
  8. find . ( -path '*/trunk/src/*.h' -o -path '*/trunk/src/*.cpp' ) -exec grep PATTERN {} +
  9.  
  10. find . -path '*/trunk/src/*' ( -name '*.h' -o -name '*.cpp' ) -exec grep PATTERN {} +
  11.  
  12. shopt -s globstar extglob
  13.  
  14. grep PATTERN **/trunk/src/**/*.@(h|cpp)
  15.  
  16. grep PATTERN **/trunk/src/**/*.(h|cpp)
  17.  
  18. grep -R --include='*.cpp' --include='*.h' PATTERN **/trunk/src
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement