Few commands in bash. find find . -name "*.pyc" -print find all files with .pyc postfix. find . -name "*.pyc" -exec rm {} \; find all files with .pyc postfix and delete them. grep grep -r "NAME" * Seach string "NAME" in all files.