From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 17:08:53 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 061A81065675 for ; Sat, 2 Aug 2008 17:08:53 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 835AE8FC12 for ; Sat, 2 Aug 2008 17:08:51 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1863919fgb.35 for ; Sat, 02 Aug 2008 10:08:51 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=ZNhLoHUV9Tllp55/bfb6VizWoYBeBR3e+it/KR2loTk=; b=kmiIOUFEPQT89ni2pILQN1lj1pc122dWvNT/geq4xSUw+nZlzanwSWPwFUu7fzYH2I MVUR2LfxmOZiObImaUPQRh1iA/A7UhA0FjOnGsemVKdVI2xOI5A9UjYNBe/eslOctI/u 7rw7kgjEWQkgHyQEMYGuOY1nvRjSxilH8ObAA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=aS+tDX2XwW2ixJB1gD/1XQ4A95pwocOvELZhSAQ9hq/uMPTlrG1fbcqIUAsrsy6PMK dY0iW8yxYeNlL4/NPTFDINDejfqoEx8Il3cHhc1J0vpoXkQJTu0Ijplfp9L0z3ty8YT2 Hnz5toKLke1ruzAN3muDHgfVPkqsqeyi+f55E= Received: by 10.103.223.9 with SMTP id a9mr4747694mur.87.1217696930891; Sat, 02 Aug 2008 10:08:50 -0700 (PDT) Received: by 10.103.199.5 with HTTP; Sat, 2 Aug 2008 10:08:50 -0700 (PDT) Message-ID: Date: Sat, 2 Aug 2008 19:08:50 +0200 From: "Redd Vinylene" To: questions@freebsd.org, freebsd-jail@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: 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:08:53 -0000 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!