JAMEL ESSOUSSI
mercredi 10 juin 2015
How to count nbr of linesin all the files of a directory?
find . -type f | xargs wc -l
find . -type f | grep .py$ | xargs wc -l
find . -name "*.py" | xargs wc -l
mardi 9 juin 2015
How to count occurrences of a word in all the files of a directory?
grep -roh {WORD} {DIR_PATH} | wc -w
Articles plus récents
Articles plus anciens
Accueil
Inscription à :
Articles (Atom)