home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] sed

On Tue, 2008-11-18 at 18:43 -0500, Chris h wrote:
> On Tuesday 18 November 2008 18:30:04 Mr. Shawn H. Corey wrote:
> > On Tue, 2008-11-18 at 18:21 -0500, Chris h wrote:
> 
> > sed -e 's/  */,/g'
> 
> Works like a charm....many thanks
> 

Just be sure that the file contains only spaces.  If it contains tabs,
you need a different sed.  Or you could do it in Perl:

perl -ple 's/\s+/,/g'


-- 
Just my 0.00000002 million dollars worth,
  Shawn

The map is not the territory,
the dossier is not the person,
the model is not reality,
and the universe is indifferent to your beliefs.


replies

references

message navigation