[PLUG] Using less on a growing file

Rich Shepard rshepard at appl-ecosys.com
Thu Sep 25 21:47:18 UTC 2014


On Thu, 25 Sep 2014, Tim Wescott wrote:

> Is there a way to use less, or a less-like viewer, to view a growing
> file such that as the file grows, paging down will get me more and more
> content?

Tim,

   Haven't tried this, but if one can watch a log file, such as
/var/log/maillog, as it has rows appended to the bottom, then it should work
for any file, yes?

   How about 'tail -f mygrowingfile.txt'?

   man tail:

"-f, --follow[={name|descriptor}] output appended data as the file grows; -f, --follow, and --f
ollow=descriptor are equivalent"

Rich



More information about the PLUG mailing list