On Thu, Sep 22, 2005 at 04:22:38PM +1000, Vino Fernando Crescini wrote: > > >#!/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.
Or move the >newlist to the last line -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html