[clue-tech] [spam?] text processing howto
Collins Richey
crichey at gmail.com
Thu Oct 7 04:37:34 MDT 2010
On Thu, Oct 7, 2010 at 1:48 AM, Brian Gibson <bwg1974 at yahoo.com> wrote:
> not necessarily the fewest strokes but it is one line (your mail client may
> break the line)
>
> COMMAND:
> $ echo "this that1 that2 that3 theotherthing" | ruby -e 'puts
> STDIN.read.split().slice(1..-1).join(",").split(/,(?!.*,)/)'
>
> OUTPUT:
> that1,that2,that3
> theotherthing
>
> ******************************
Yeah, ruby is really my favorite.
--
Collins Richey
If you fill your heart with regrets of yesterday and the worries
of tomorrow, you have no today to be thankful for.
More information about the clue-tech
mailing list