projects
/
b3603-psu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2e256f2
)
ina3221: less output in each line
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 23 Jun 2019 10:32:20 +0000
(12:32 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 2 Jul 2019 14:12:21 +0000
(16:12 +0200)
ina3221.sh
patch
|
blob
|
history
diff --git
a/ina3221.sh
b/ina3221.sh
index
06f34ff
..
5955cb1
100755
(executable)
--- a/
ina3221.sh
+++ b/
ina3221.sh
@@
-1,4
+1,4
@@
filter="."
test ! -z "$1" && filter="$1:"
filter="."
test ! -z "$1" && filter="$1:"
-while true ; do echo $(sensors 'ina3221-*' | grep [0-9]: | grep $filter | sed 's/(.*)//g') | sed -e 's/ V in
/ /g' -e 's/ A curr
/ /g' -e 's/+//g'; sleep 1 ; done
+while true ; do echo $(sensors 'ina3221-*' | grep [0-9]: | grep $filter | sed 's/(.*)//g') | sed -e 's/ V in
.: / /g' -e 's/ A curr.:
/ /g' -e 's/+//g'; sleep 1 ; done