Skip to content

Instantly share code, notes, and snippets.

@jfountain
Last active July 24, 2019 14:03
Show Gist options
  • Save jfountain/e7d911071766f85a4deb3680419c1609 to your computer and use it in GitHub Desktop.
Save jfountain/e7d911071766f85a4deb3680419c1609 to your computer and use it in GitHub Desktop.

Commands

Count lines in files with wc

cat *.csv | wc -l

Count lines in files with find and wc

find . -type f -name '*.csv' -exec wc -l {} +

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment