read log from file specified as first argument
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 2 Feb 2016 17:30:43 +0000 (18:30 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 2 Feb 2016 17:30:43 +0000 (18:30 +0100)
logview-scope.sh

index 5d17792..f7e9d95 100755 (executable)
@@ -7,9 +7,14 @@
 test -x driveGnuPlots.pl || wget http://users.softlab.ntua.gr/~ttsiod/driveGnuPlots.pl && chmod 755 driveGnuPlots.pl
 
 width=120
+file=$1
+
+test -z "$file" && file=`ls -t log/*.log | head -1`
+
+echo "# using $width points from file $file"
 
 #tail -f `ls -t log/*.log | head -1` \
-cat `ls -t log/*.log | head -1` \
+cat $file \
 | grep '$1' | cut -d\; -f \
 4,5,6,\
 10,11,\