[ale] SED

michael d. ivey ivey at gweezlebur.com
Tue Nov 30 17:40:11 EST 1999


On Tue, Nov 30, 1999 at 05:01:51PM -0500, Gregory McLean wrote:
> -> On Tue, Nov 30, 1999 at 04:30:53PM -0500, Thorsten Hofrichter wrote:
> 
> -> > I need to use sed for this and have tried doing 
> -> > cat filename | sed s/,/\\n/g
> -> > I have read man pages but dont understant why that would not work
> -> > Any ideas??
> -> 
> -> $ cat filename | sed -e 's/,/\
> -> /'
> don't forget the 'g'lobal switch :)

you know, i did it once without /g, and then fixed it, and forgot to
put it in the email.  to confirm:

$ cat filename | sed -e 's/,/\
/g'

thanks gregory.

-- 
-- michael d. ivey, chief thinker  --- <ivey at gweezlebur.com> -----------
------ gweezle bur poetry manufacturing  <http://gweezlebur.com> -------
------------------------------------------------------------------------
"Television!  Teacher, mother, secret lover..."         -- Homer Simpson






More information about the Ale mailing list