Created
February 26, 2016 21:45
-
-
Save kalimalrazif/b3998b7883017eaf892f to your computer and use it in GitHub Desktop.
Detectar malware de linea larga
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; echo ------- $archivo -------; | |
awk 'length > max_length { max_length = length; longest_line = $0 } END { print longest_line }' $archivo; | |
echo ------- $archivo -------; echo; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment