Re: BASH Script to read a file, but ignore #comments

From: Peteris Krumins (peteris.krumins_at_gmail.com)
Date: 11/15/04


Date: 14 Nov 2004 15:00:29 -0800

mjt <mjtobler@removethis_mail.ru> wrote in message news:<2vncq9F2ninfqU1@uni-berlin.de>...
> Luke Robertson wrote:
>
> > I am trying to get a script to read a list of banned sites:
> >
> > while read BANNED; do
> >   iptables -A FORWARD -j DROP -s $BANNED
> > done < /root/scripts/bannedsites
>
> ... why not put those sites in the /etc/hosts
> file and point them to 127.0.0.1 ?

Because that's useless.

P.Krumins