bash - display text file and update when the file contents change -
i want have window open content of file file.txt
. not care command use open it, nano, cat, vi
or whatever. want update every time changes, if open in window, edit , save it, file in original window update, kind of screen
. suggestions?
i have tried having open new cat file.txt
command every few seconds, unreliable.
use
watch cat file.txt
that should update when changes occur, try
man watch
to see options has can update frequency of updates.
Comments
Post a Comment