bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed


From: Bob Proulx
Subject: Re: sed
Date: Tue, 24 Aug 2004 10:18:06 -0600
User-agent: Mutt/1.3.28i

Stepan Kasal wrote:
> address@hidden wrote:
> > I'm trying to use 'sed' version 3.02 with the following command line on
> > dos:
> > sed -e "s/ /\n/g" my_file

While I like and use sed very much, for this particular change I would
probably use 'tr' instead.

  echo one two three | tr " " "\n"
  one
  two
  three

  echo one two three | tr " " "\012"
  one
  two
  three

I don't know if this works under DOS or not.  But I think it should.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]