projects
/
zc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
368085d
)
specify also inverval unit (days, hours)
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 7 Mar 2022 17:48:18 +0000
(18:48 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 7 Mar 2022 17:48:18 +0000
(18:48 +0100)
gnuplot/calc-offset.sh
patch
|
blob
|
history
diff --git
a/gnuplot/calc-offset.sh
b/gnuplot/calc-offset.sh
index
84133c6
..
615a415
100755
(executable)
--- a/
gnuplot/calc-offset.sh
+++ b/
gnuplot/calc-offset.sh
@@
-1,7
+1,7
@@
#!/bin/sh
-days=90
-test ! -z "$1" &&
days=$1
+interval="90 days"
+test ! -z "$1" &&
interval="$*"
-cat calc-offset.sql | sed "s/90 days/$
days days
/" | psql -A -t -F' ' zc
+cat calc-offset.sql | sed "s/90 days/$
interval
/" | psql -A -t -F' ' zc