yep, and if I cat the file they are displayed that way

I know it's a longshot, but can you confirm that there are
no ^M (CR) characters in the end of each line in
allusers.txt?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Vino Fernando Crescini
Sent: Thu, 22. September 2005 3:47 PM
To: SLug Users
Subject: Re: [SLUG] Script help



#!/bin/bash
while read name; do
grep $name smbpasswd;
done < allusers.txt


are the names in allusers.txt listed one per line?


--
Vino Fernando Crescini             Intelligent Systems Laboratory
                                   School of Computing & IT
phone: +61 2 4736 0140             University of Western Sydney
email: [EMAIL PROTECTED]     Locked Bag 1797
web: www.cit.uws.edu.au/~jcrescin  Penrith South DC NSW 1797

Scanned by SCIT E-Mail Gateway http://www.cit.uws.edu.au


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to