Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2020 16:42:17 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   Linux command 'watch'
Message-ID:  <20200526144217.GB7556@sh4-5.1blu.de>

Next in thread | Raw E-Mail | Index | Archive | Help

Hello,

On my Ubuntu mobile phone I'm used to use a command 'watch' in its
terminal app in this way, for example:

$ watch -n 1 date

This does every second: clears the screen, launches date and prints its
STDOUT into the terminal. Due to the clear of the screen, the output of
date stays in the same position and only the part of the seconds is counting
upwards. I got to know and to use it, because the Ubuntu phone lacks a
digital clock app showing the seconds.

The FreeBSD watch(1) command does other things, nothing todo with the above.

Do we have something similar? Ofc I could write this as a shell loop, so
please don't give me such hints :-)

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20200526144217.GB7556>