Re: [ILUG] sed people ?

From: John P. Looney (jplooney-ilug at domain online.ie)
Date: Fri 11 Feb 2000 - 13:10:49 GMT


On Fri, Feb 11, 2000 at 01:02:52PM +0000, Lars Hecking mentioned:
> > cat file | sed -e 's/| */|/' > file1
> > cat file1 | sed -e 's/ *|/|/' > file
> Enter our contender for this week's Useless Use of cat Award!

 Well, trying to be modular & see where it breaks ;)

> > That regexp works fine in Vim. Not in sed. Mutter.
> Use the g(lobal) flag: sed 's/| */|/g'

 Mutter. I have that set in Vim by default.

Kate



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:24 GMT