jail_box_ip="<insert hundreds of ips here>"
reddvinylene at gmail.com
Sat Aug 2 17:17:38 UTC 2008
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 at 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
> Like this?
> 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?
More information about the freebsd-questions