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.

6 kuukautta sitten
123456789101112131415161718192021
  1. #! /bin/sh
  2. explic ()
  3. {
  4. echo "Utilisation : $0 PID_OctavE mots_cles !" >&2
  5. exit 1
  6. }
  7. [ $# != 2 ] && explic
  8. liste=`grep 'OctavE\['$1'\].*'$2 /var/log/user.log|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. p2=`echo $p|sed 's/|//'`
  15. # echo '('$p2')'
  16. grep 'OctavE\['$1'\]' /var/log/user.log|egrep '('$p2')'|cut -d' ' -f1-3,6-