Created
August 12, 2016 14:12
-
-
Save dozortsev/dfe3e87a5f49d0b99c9c9e67f1a5fb93 to your computer and use it in GitHub Desktop.
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 *server.log */server.log */server.log.* | |
do | |
# echo "$file" | |
grep -rwn "$file" -e "Unexpected error during registration." | |
if [ $? = 0 ] | |
then | |
printf "\n\n\nfile: $file\n" | |
grep -rwn "$file" -e "Unexpected error during registration." | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment