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
Post a Comment