Text processing tools and/or languages

Chris Green cl at isbd.net
Thu Jan 20 19:57:15 UTC 2022


On Thu, Jan 20, 2022 at 02:34:57PM -0500, Mike Marchywka wrote:
> On Thu, Jan 20, 2022 at 03:42:00PM +0000, Chris Green wrote:
> > I'm looking for tools (if there are any) for processing a text file
> > line by line sequentially.
> > 
>  This is how most of linux works :) 
> 
Yes, but it's *not* how sed and awk work. :-)

Both sed and awk feed the whole of the text past each line of the
script in turn, they don't process the text file line by line.  You
don't have a concept of "where you are in the text" as you progress
down your program.

-- 
Chris Green




More information about the ubuntu-users mailing list