Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2005 10:30:56 -0600
From:      "antenneX" <antennex@swbell.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Help on a little script
Message-ID:  <03d601c50168$ea660bf0$0200000a@SAGEAME>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03d601c50168$ea660bf0$0200000a>