projects
/
cheali-logview-gnuplot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea4d3e2
)
read log from file specified as first argument
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 2 Feb 2016 17:30:43 +0000
(18:30 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 2 Feb 2016 17:30:43 +0000
(18:30 +0100)
logview-scope.sh
patch
|
blob
|
history
diff --git
a/logview-scope.sh
b/logview-scope.sh
index
5d17792
..
f7e9d95
100755
(executable)
--- a/
logview-scope.sh
+++ b/
logview-scope.sh
@@
-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,\