From owner-freebsd-questions@FreeBSD.ORG Sun Jan 23 23:19:44 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A025216A4CE for ; Sun, 23 Jan 2005 23:19:44 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E52D43D2D for ; Sun, 23 Jan 2005 23:19:44 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from [192.168.2.101] (utdvpn084064.utdallas.edu [129.110.84.64]) by smtp1.utdallas.edu (Postfix) with ESMTP id 60D5D3891CD; Sun, 23 Jan 2005 17:18:35 -0600 (CST) Date: Sun, 23 Jan 2005 17:18:28 -0600 From: Paul Schmehl To: antenneX , freebsd-questions@freebsd.org Message-ID: <2147483647.1106500708@[192.168.2.101]> In-Reply-To: <03d601c50168$ea660bf0$0200000a@SAGEAME> References: <03d601c50168$ea660bf0$0200000a@SAGEAME> X-Mailer: Mulberry/3.0.3 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Help on a little script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 23:19:44 -0000 --On Sunday, January 23, 2005 10:30 AM -0600 antenneX wrote: > Am running FBSD-4.10p2 > > I have a serious need for some help on a CGI script I just installed. > I've tried to reach the author but no dice there. > > It's used to automate "unsubscribes" on a mail list. > > It works well except for this: > It changes my mail list from this format: > name1 > name2 > name3 > > ...to this: > name1name2name3 <---one big long line with no separators. > > With over 6000 names it makes a huge long line instead with no space > between > the names either. It make a mess! > > I know how to convert > name1 > name2 > name3 > > ...to > name1 name2 name3..... > > like this: ># cat mybadlist | xargs > mygoodlist > > ...but, need the reverse. > > So how can I convert > name1name2name3 > ...back to the original format? > name1 > name2 > name3 > It would probably be a lot easier to fix the cgi script so it creates the list with separators. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu