You mean the numbers never change? Even if you make the machine do some work?
Exactly
Even though it only needs to be executed once, adding it like this works:
... -e watch -t "echo -ne '\033[?25l'; grep M ...
Ah, thanks, I didn't know how exactly to integrate it.
So, adding that results in:
- Without tr, 5x1 : does not work
- Without tr, 4x2 : works as desired
- With tr, 4x1 : works as desired, with a side effect of output blinking.
Could you show me how you got tr to work? When I tried, I got no output, like it wasn't even running:
tc@box:~$ watch -t grep M /proc/cpuinfo | tr -d '\n'
^C
tc@box:~$ watch -t grep M /proc/cpuinfo | tr -d '\n'
^C
tc@box:~$
This command works for me, showing cursor positioned imminently after output.
Attached my version including tr, see at end of line. (working as desired with 4x1, side effect of last digit getting crippled by pseudo-invisible cursor).