Date: Wed, 6 Oct 2004 04:02:01 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Brent Bailey <misterb@bmyster.com> Cc: questions@freebsd.org Subject: Re: shell script Message-ID: <20041006010201.GJ1471@gothmog.gr> In-Reply-To: <1358.65.175.209.179.1096993388.squirrel@new.host.name> References: <1358.65.175.209.179.1096993388.squirrel@new.host.name>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-10-05 12:23, Brent Bailey <misterb@bmyster.com> wrote: > i need to write a for-loop that will read the 1st line in a aliase file > and grep a passwd file for that user...if that user doesnt exsist in the > passwd file go the 2nd line and grep the passwd file for that user ...and > so on > > anyone have any suggestions ? : cat /etc/mail/aliases | \ : while read line ;do : echo $line : done But as someone else suggested Perl is a lot better for this task.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041006010201.GJ1471>