Ticket #93: monitor-log.sh.patch

File monitor-log.sh.patch, 529 bytes (added by behemoth, 10 years ago)
  • monitor-log.sh

     
    9999$NOBUF tr '\\' '/' |
    100100$NOBUF tr -d '\r' |
    101101$NOBUF grep -v "^(Filename: " |
    102 $NOBUF sed -r 's/^[0-9]+-[0-9]+-[0-9]+T[0-9]+:[0-9]+:[0-9]+ [0-9]+[.,][0-9]+ (.*)$/\1/' |
     102$NOBUF sed -r 's/^[0-9]+-[0-9]+-[0-9]+T[0-9]+:[0-9]+:[0-9]+ [0-9]+[.,][0-9]+ INF (.*)$/\1/' |
    103103while read line ; do
    104104        if [ -n "$line" ]; then
    105105                echo "$(timestamp): $line" >> $LOG