Skip to content

Instantly share code, notes, and snippets.

@rafazrte
Created November 15, 2019 00:49
Show Gist options
  • Save rafazrte/a3b0907e405895ae41f0ab51c0039990 to your computer and use it in GitHub Desktop.
Save rafazrte/a3b0907e405895ae41f0ab51c0039990 to your computer and use it in GitHub Desktop.
find $1 -name $2 | xargs -I file wc -l file | awk '{ print $1; }' | tr "\n" "+" | awk '{ print $1 0 }' | bc
@rafazrte
Copy link
Author

To execute, run the following command:

bash <(curl -Ls <RAW_GIST_URL>) <path_to_dir>

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