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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -