2 #Logs a single line into the log file passed as script parameter
3 # adds timestamp to the logview openformat lines
6 if [ "x$file" = "x" ]; then
7 echo Please pass a file name to log the line into
11 #Beispielausgabe USB-WDE1:
12 # $1;1;;13,8;22,7;22,6;17,8;22,2;21,2;22,9;;59;35;38;49;38;40;35;;;;;;;0
13 # Doku des Formats in 92030_USB_WDE1_V1.0_UM.pdf bei elv.de verfügbar
14 # Format ist "Logview openformat"
15 # http://www.logview.info/cms/d_formatbeschreibung.phtml
19 beginning=`echo "$line"|cut -b 1-3`
20 if [ "$beginning" = '$1;' ]; then
22 echo $line|sed "s/\$1;1;;/\$1;1;$timestamp;/" > "$file"