3 ms·
find . -name '.py' | grep 'import' I don't think that works. That'll grep for files named '\import\',
by ori_b 15y ago
find . -name '.py' | grep 'import'
I don't think that works. That'll grep for files named '\import\',
- beambot 15y agoI use xargs for the find + rm cases he mentions. However, if you just want the file names containing the words import, I rely exclusively on grep: grep -r -l import *.py