-
#!/bin/sh
-
append=“”;
-
tail -F /opt/log/audit/audit.log | sed -u -e ‘s/^M//g’ -e ‘/^$/d’ -e ‘s/ *$//g’ -e ‘s/^ *//g’ -e ‘s/ +/ /g’ | while read line; do
-
if [ “$line” == “___” ]
-
then
-
logger -p local0.info -t tag $append
-
append=“”;
-
else
-
append=“$append#$line”;
-
fi
-
done