Date: Sat, 2 Aug 2008 19:17:36 +0200 From: "Redd Vinylene" <reddvinylene@gmail.com> To: questions@freebsd.org, freebsd-jail@freebsd.org Subject: Re: jail_box_ip="<insert hundreds of ips here>" Message-ID: <f1019d520808021017n78f53859jd502c0026ae7d943@mail.gmail.com> In-Reply-To: <f1019d520808021008r55b83507ia755b945d95a4345@mail.gmail.com> References: <f1019d520808021008r55b83507ia755b945d95a4345@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Here's what I got so far: http://pastie.org/246189 And this is just wishful thinking I guess: http://pastie.org/246190 On Sat, Aug 2, 2008 at 7:08 PM, Redd Vinylene <reddvinylene@gmail.com> wrote: > Hey, I got a couple of hundred IPs, is there an easy way to add them > all to jail_box_ip="ip1,ip2,ip3" without making like the longest line > ever? > > Like this? > > jail_box_ip="66.252.2.4,\ > 66.252.2.5,\ > 66.252.2.6,\ > > Unfortunately that doesn't look too good. > > Nor does: > > export x=$(cat ips);export jail_ips=''; for ip in $x; do export > jail_ips="$jail_ips,$ip"; done; export jail_ips=$(echo $jail_ips | sed > s/,$/''/ | sed s/^,//); > > Is there a more beautiful alternative? > > Thanks! > -- http://www.home.no/reddvinylene
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f1019d520808021017n78f53859jd502c0026ae7d943>