Isn't bash great!  

if that wasn't bash then I just made a fool of myself.

--------------Kris Gibson---------------
                                ____
----==-- _                     / /  \
---==---(_)__  __ ____  __    / / /\ \
--==---/ / _ \/ // /\ \/ /   / /_/\ \ \
-=====/_/_//_/\_,_/ /_/\_\  /______\ \ \
A proud member of TeamLinux \_________\/
[EMAIL PROTECTED]
On Mon, 6 Apr 1998, Rick L. Mantooth wrote:

> 
> for line in `cat filename`
> do
>       do_whatever_with $line
> done
> 
> 
> And just to test $line
> 
> for line in `cat filename`
> do
>       echo $line
> done
> 
> Rick
> 
> On Mon, 6 Apr 1998, Niclas Domack wrote:
> 
> > A (probably) stupid question from a shell-programming newbie..
> > 
> > I have got a long list of usernames and passwords which I want to read and pass to 
>the htpasswd command. I need a function which reads a line of a file, giving me a 
>variable with the contents of that line, then moving on to the next line and so on, 
>looping. I looked around, but the best I found was the 'read' command which I only 
>get to read one line... I know there must be a way to do this, but I can't find it... 
>help!
> > 
> > Thanks in advance,
> > 
> > Niclas
> > 
> 
> --
> Rick L. Mantooth      [EMAIL PROTECTED]
> http://www.why.net/users/rickdman/index.html
> If we aren't supposed to eat animals, why are they made with meat?
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
>          To unsubscribe: mail [EMAIL PROTECTED] with 
>                        "unsubscribe" as the Subject.
> 


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to