Hmmm, just loaded the allusers.txt file into pico and did a write out
and it now works, must have still been a windows file. Now my modified
procedure is below but I only get one entry in the newlist file (either
the last one in allusers or the last processed if I interrupt it.

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

The > redirection will overwrite the file if it exists. Use >>
to append to the file.

--
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