Ticket #93: monitor-log.sh.patch
File monitor-log.sh.patch, 529 bytes (added by behemoth, 10 years ago) |
---|
-
monitor-log.sh
99 99 $NOBUF tr '\\' '/' | 100 100 $NOBUF tr -d '\r' | 101 101 $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/' | 103 103 while read line ; do 104 104 if [ -n "$line" ]; then 105 105 echo "$(timestamp): $line" >> $LOG