Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Reading line by line




> > meino.cramer@xxxxxx wrote:
> > > Hi,
> > > 
> > >  how can I read line by line from a file of text?
> 
> Most Unix tools (cut, paste, sed, awk...) read files lines by
> line, it's generally a bad idea to have the shell read the file
> by itself.

I disagree, one shouldn't have to load in heavy tools like sed and friends 
if they aren't needed.

> 
> [...]
> > while read theline
> 

See Chapter 17 "Shell Builtin Commands" 
  - It explains the "read" builtin command and explains the options in gory detail.


Regards,
  Darel Henman



Messages sorted by: Reverse Date, Date, Thread, Author