Created
June 26, 2017 17:30
-
-
Save kkirsche/602b97fba808d32951e68349b6ca63e7 to your computer and use it in GitHub Desktop.
Longest File in directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for file in $(find .) | |
| do | |
| if [ -f $file ]; then | |
| wc -l $file | |
| fi | |
| done | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment