Re: [Tutor] look back comprehensively

2018-12-27 Thread Mark Lawrence
On 25/12/2018 00:45, Avi Gross wrote: Please go away as you are so boring :-( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscr

Re: [Tutor] look back comprehensively

2018-12-25 Thread Mats Wichmann
On 12/24/18 5:45 PM, Avi Gross wrote: > As for the UNIX tools, one nice thing about them was using them in a > pipeline where each step made some modification and often that merely > allowed the next step to modify that. The solution did not depend on one > tool doing everything. I know we're wo

Re: [Tutor] look back comprehensively

2018-12-24 Thread Avi Gross
@python.org Subject: Re: [Tutor] look back comprehensively On 12/24/18 2:14 AM, Alan Gauld via Tutor wrote: > On 24/12/2018 05:25, Asokan Pichai wrote: > >> That said, sometimes text processing at the shell can precede or even >> replace some of these. Of course that assumes Unix/Li

Re: [Tutor] look back comprehensively

2018-12-24 Thread Mats Wichmann
On 12/24/18 2:14 AM, Alan Gauld via Tutor wrote: > On 24/12/2018 05:25, Asokan Pichai wrote: > >> That said, sometimes text processing at the shell can precede or even >> replace some of these. Of course that assumes Unix/Linux OS. > In fact for most log file analysis I still use [ng]awk. > Its h

Re: [Tutor] look back comprehensively

2018-12-24 Thread Alan Gauld via Tutor
On 24/12/2018 05:25, Asokan Pichai wrote: > That said, sometimes text processing at the shell can precede or even > replace some of these. Of course that assumes Unix/Linux OS. > It's a good point except that any OS will do. Even MS DOS had basic text processing commands suitable for filtering l

Re: [Tutor] look back comprehensively

2018-12-23 Thread Asokan Pichai
On Mon, Dec 24, 2018 at 5:16 AM Mats Wichmann wrote: > On 11/14/18 3:01 PM, Steven D'Aprano wrote: > > On Tue, Nov 13, 2018 at 11:59:24PM -0500, Avi Gross wrote: > >> I have been thinking about the thread we have had where the job seemed > to be > >> to read in a log file and if some string was f

Re: [Tutor] look back comprehensively

2018-12-23 Thread Mats Wichmann
On 11/14/18 3:01 PM, Steven D'Aprano wrote: > On Tue, Nov 13, 2018 at 11:59:24PM -0500, Avi Gross wrote: >> I have been thinking about the thread we have had where the job seemed to be >> to read in a log file and if some string was found, process the line before >> it and generate some report. Is

Re: [Tutor] look back comprehensively

2018-11-14 Thread Steven D'Aprano
On Tue, Nov 13, 2018 at 11:59:24PM -0500, Avi Gross wrote: > I have been thinking about the thread we have had where the job seemed to be > to read in a log file and if some string was found, process the line before > it and generate some report. Is that generally correct? If that description is c

[Tutor] look back comprehensively

2018-11-14 Thread Avi Gross
I have been thinking about the thread we have had where the job seemed to be to read in a log file and if some string was found, process the line before it and generate some report. Is that generally correct? The questioner suggested they needed both the entire file as one string but also as a