Advertisement
sergio_educacionit

severity_finder.sh

Dec 5th, 2022
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Modo de uso:
  4. # ./severity_finder /ruta/al/fichero
  5.  
  6. file_log=$1
  7.  
  8.  
  9. for i in emerg alert crit err warn info debug; do
  10.  
  11. echo "Severity: $i"
  12. echo ""
  13.  
  14. grep $i $file_log
  15.  
  16. read -p "presione enter para continuar..."
  17.  
  18. done
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement