[SLUG] Scripting Question

From: Paul M Foster (paulf@quillandmouse.com)
Date: Tue Nov 27 2001 - 18:24:13 EST


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?

Paul



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:53:25 EDT