Today's example involves two Linux commands:
watch and cat
Here is a simple method by creating a script that returns an output:
Make this script executable and name it: meminfo.
while [ 1 ]; do cat /proc/meminfo; date; echo; sleep 1; done
The output is then processed by the command:
This simple method can be applied to other files ...
$ watch -d ./meminfo