Brian Coyle wrote:
> 
> Paul M Foster wrote:
> >
> > Here's what I've got: I want to be able to peel off one line at a time
> > from a file and process just that line, before going on to the next one.
> > I tried something like:
> >
> > cat myfile | while read ; do
> >         do_something $REPLY
> > done
> >
> > but it didn't work. I'm trying to avoid awk, sed, perl and such, and
> > only do this in bash.
> >
> > Any clues?
> 
[incorrect example snipped]
OOPS! I hate it when I cut-n-paste the wrong stuff.  
Here's a corrected working example.
#
#  Reads thru the input file (data_input) and does
#  fun things with the lines...
#
cat data_input | while read INPUT
   do
     echo $INPUT
   done
See also: http://www.linuxdoc.org/LDP/abs/html/redircb.html
Sorry for any confusion.
-- "Open source software - with no walls and fences, who needs Windows and Gates?"
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:54:18 EDT