for w in "for" "if" "continue"; do tmp=$(mktemp); grep -P "\b$w\b" * -R | grep -v 'Binary file' | awk -F":" '{print $1}' > $tmp; echo "word: $w"; cat $tmp | sort | uniq -c | sort -hr | head -n 10; rm -f $tmp; done
word: for
471 __init__.py
141 depsolve.py
127 rpmsack.py
104 sqlitesack.py
93 packageSack.py
88 comps.py
81 history.py
74 packages.py
73 yumRepo.py
58 updateinfo.py
word: if
1024 __init__.py
317 yumRepo.py
297 packages.py
248 depsolve.py
235 rpmsack.py
233 sqlitesack.py
189 history.py
155 misc.py
149 pgpmsg.py
116 config.py
word: continue
144 __init__.py
47 depsolve.py
35 rpmsack.py
30 sqlitesack.py
19 yumRepo.py
16 history.py
14 updateinfo.py
14 transactioninfo.py
14 packages.py
14 misc.py