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!
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to