Re: BASH Script to read a file, but ignore #comments
From: Peteris Krumins (peteris.krumins_at_gmail.com)
Date: 11/15/04
- Next message: mjt: "Re: loop device with 2.6.8 kernel"
- Previous message: Andreas Janssen: "Re: loop device with 2.6.8 kernel"
- In reply to: mjt: "Re: BASH Script to read a file, but ignore #comments"
- Next in thread: mjt: "Re: BASH Script to read a file, but ignore #comments"
- Reply: mjt: "Re: BASH Script to read a file, but ignore #comments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: mjt: "Re: loop device with 2.6.8 kernel"
- Previous message: Andreas Janssen: "Re: loop device with 2.6.8 kernel"
- In reply to: mjt: "Re: BASH Script to read a file, but ignore #comments"
- Next in thread: mjt: "Re: BASH Script to read a file, but ignore #comments"
- Reply: mjt: "Re: BASH Script to read a file, but ignore #comments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]