Created
February 26, 2016 21:41
-
-
Save kalimalrazif/e61cf1dbe3a5316ebc84 to your computer and use it in GitHub Desktop.
Encontrar la palabra mas larga en un archivo
This file contains 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 archivo in `find ./ -type f | grep php`; do | |
echo ------- $archivo -------; | |
cat $archivo | sed 's/ /\n/g' | sort | uniq | awk '{print length, $0}' | sort -nr | head; | |
echo ------- $archivo -------; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment