grep - is there a way to restrict the find to only *.py files -


i have following find command..is there way restrict find *.py files?

find . | xargs grep 'git' -sl 

thanks,

you using find, it's simple. here's 1 way:

find . -name '*.py' -print | xargs grep 'git' -sl {} 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -