[PLUG] Using less on a growing file
Smith, Cathy
Cathy.Smith at pnnl.gov
Thu Sep 25 21:30:28 UTC 2014
You can also do a tail -f
Cathy
---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
Operated by Battelle for the
U.S. Department of Energy
Phone: 509.375.2687
Fax: 509.375.2330
Email: cathy.smith at pnnl.gov
-----Original Message-----
From: plug-bounces at lists.pdxlinux.org [mailto:plug-bounces at lists.pdxlinux.org] On Behalf Of Bill Barry
Sent: Thursday, September 25, 2014 2:22 PM
To: tim at wescottdesign.com; Portland Linux/Unix Group
Subject: Re: [PLUG] Using less on a growing file
On Thu, Sep 25, 2014 at 2:16 PM, Tim Wescott <tim at wescottdesign.com> 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?
>
> As far as I can tell, just running 'less myfile.txt', when myfile.txt
> is being written to by another app, seems to just take a snapshot of
> myfile.txt -- I want to be able to look at the full extent of the file
> AS IT GROWS, to monitor ongoing long computations to see how they're
> doing.
less itself works that way. shift-g will reveal anything new added
to myfile.txt after you opened it with less.
Bill
_______________________________________________
PLUG mailing list
PLUG at lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug
More information about the PLUG
mailing list