Sum the number of lines in each file of a folderpar eddy barraud15 mars 201913 avril 2020Informatique (category) Run this command to sum the number of lines in each file of a folder find . -maxdepth 1 -type f -exec wc -l {} + | awk '{sum+=$1} END {print sum}' view raw count-number-of-lines-in-each-files.md hosted with ❤ by GitHub Étiquettes:bash (tag)cli (tag)command line (tag)Linux (tag)Ubuntu (tag) Laisser un commentaire Annuler la réponseVotre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec * Nom E-mail Site web Commentaire * précédentNumber of filessuivantBattery Tips
Run this command to sum the number of lines in each file of a folder find . -maxdepth 1 -type f -exec wc -l {} + | awk '{sum+=$1} END {print sum}'