Quoting Nick Rout <[EMAIL PROTECTED]>: 
 
>  
> On Tue, 13 Jul 2004 13:20:39 +1200 (NZST) 
> [EMAIL PROTECTED] wrote: 
>  
> > Quoting Nick Rout <[EMAIL PROTECTED]>:  
> >  
> > > to delete every crlf to a space.  
> > >  
> > > tried  
> > >  
> > > sed 's/\015\012/" "/' dbcontents.txt >dbcontents2.txt and  
> > > sed 's/\015\012/\024/' dbcontents.txt >dbcontents2.txt and  
> > How about something like  
> >  
> > cat dbcontents.txt | tr -d "\015" | tr "\012" ' ' > dbcontents2.txt  
>  
> won't that delete every \012. I only want where \015 and \012 are 
> consecutive 
Yes, pedantically, it will delete every carriage return and change every 
line-feed to a space. 
 
For perfection in the matter you really need a perl script. 
I'm not a perler. 
 
> but i will play with tr thanks 
 
--  
Sincerely etc.  
Christopher Sawtell  
  

Reply via email to