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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -