From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 17:17:38 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFB3C1065672 for ; Sat, 2 Aug 2008 17:17:38 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 499658FC13 for ; Sat, 2 Aug 2008 17:17:37 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1867435fgb.35 for ; Sat, 02 Aug 2008 10:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tNDv7CrkcFavrYRbNBPbCSxo4d11F5tR1vqdcce9Ymc=; b=NvvHtK6FuMmxpsEGG56eo1cCa7lRToaSpVRqg1wSBrdda7IFexn+99g6cF0474kyw4 l92C/CY2Ltqe25jw+ESMHq5cR6RyBFmTXeqkg4gHUatZmXPniev2qKq3i6G2ncGOUAVq kT/0AMqIAeVPuBDOcOi5HZN4HZ8PEXRAQAnY8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XCQVv6se8HeEGiRtEbGPL+WtPWXjyMTvcELDLSnTXpnc0bKnFTwdoqk0Gl/jm90Jrw h/LLSy17U1hli0TfpxnScFqE8xa0CuPss7KPgq/W4Qo+MA64BtPz8gi2ebDxip0pUxV3 5Xf4Lcjuy1L/zCPD2rEfwsczxC5oM/uiXxovc= Received: by 10.103.213.19 with SMTP id p19mr4760145muq.70.1217697456885; Sat, 02 Aug 2008 10:17:36 -0700 (PDT) Received: by 10.103.199.5 with HTTP; Sat, 2 Aug 2008 10:17:36 -0700 (PDT) Message-ID: Date: Sat, 2 Aug 2008 19:17:36 +0200 From: "Redd Vinylene" To: questions@freebsd.org, freebsd-jail@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: Subject: Re: jail_box_ip="" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2008 17:17:38 -0000 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 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