Skip to content

Instantly share code, notes, and snippets.

@dozortsev
Created August 12, 2016 14:12
Show Gist options
  • Save dozortsev/dfe3e87a5f49d0b99c9c9e67f1a5fb93 to your computer and use it in GitHub Desktop.
Save dozortsev/dfe3e87a5f49d0b99c9c9e67f1a5fb93 to your computer and use it in GitHub Desktop.
#!/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