From owner-freebsd-questions@FreeBSD.ORG Sun Jan 23 17:49:26 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 7DF9316A4CE for ; Sun, 23 Jan 2005 17:49:26 +0000 (GMT) Received: from smtp105.rog.mail.re2.yahoo.com (smtp105.rog.mail.re2.yahoo.com [206.190.36.83]) by mx1.FreeBSD.org (Postfix) with SMTP id E186F43D54 for ; Sun, 23 Jan 2005 17:49:25 +0000 (GMT) (envelope-from Mike.Jeays@rogers.com) Received: from unknown (HELO ?192.168.2.107?) (mjeays2551@24.114.152.139 with plain) by smtp105.rog.mail.re2.yahoo.com with SMTP; 23 Jan 2005 17:49:25 -0000 From: Mike Jeays To: antenneX In-Reply-To: <03d601c50168$ea660bf0$0200000a@SAGEAME> References: <03d601c50168$ea660bf0$0200000a@SAGEAME> Content-Type: text/plain Message-Id: <1106502564.2508.259.camel@chaucer> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 23 Jan 2005 12:49:24 -0500 Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Help on a little script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 17:49:26 -0000 On Sun, 2005-01-23 at 11:30, 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 > > > Would really appreciate your help as it is really messing up my mail > lists.... > > Thanks in advance! > > Best regards, > > Jack L. Stone > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" It may be impossible, if the names have really been run together with no separator at all. 'john.doe@xyz.competer@xyz.netmike@xyz.org' cannot reliably be parsed into distinct names. Are you quite sure there is no separator - look at the file with od (octal dump).