We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4f89b6 commit 29840d8Copy full SHA for 29840d8
conk_reader.sh
@@ -1,10 +1,11 @@
1
#! /usr/bin/env bash
2
3
tmp=/dev/shm/conkys
4
-ls "$tmp" | while read -r neco
+while read -r neco
5
do
6
[ ! -e "$tmp/$neco/temp" ] && continue
7
read -r temp < <(cat "$tmp/$neco/temp")
8
- echo -n " $neco: $temp°C"
9
-done
10
-echo ""
+ # echo -n " $neco: $temp°C"
+ out="$out$neco: $temp°C "
+done <<<$(ls "$tmp")
11
+[ "$out" ] && echo $out
0 commit comments