Code afférent au projet Kouglof 2 de l'E2L
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 месец
12345678910111213141516171819202122
  1. #! /bin/sh
  2. explic ()
  3. {
  4. echo "Utilisation : $0 PID_OctavE mots_cles !" >&2
  5. exit 1
  6. }
  7. [ $# != 2 ] && explic
  8. liste=`journalctl --system|grep 'OctavE\['$1'\].*'$2|grep -v ' ERR: '|grep ': Re[pq]\. '|cut -d' ' -f7|sort|uniq`
  9. p=""
  10. for v in $liste
  11. do
  12. p=$p"|"$v
  13. done
  14. [ "$p" = "" ] && exit 0
  15. p2=`echo $p|sed 's/|//'`
  16. # echo '('$p2')'
  17. journalctl --system|grep 'OctavE\['$1'\]'|egrep '('$p2')'|cut -d' ' -f1-3,6-
  18. exit 0