Ami,

$cat filename | tr '\n\r' ' ' > newfilename

this command will replace all ur \n\r with spaces. 

vineet

> From: Amitava Sen <[EMAIL PROTECTED]>
> To: Linux-India-Help <[EMAIL PROTECTED]>
> Subject: [LIH]script to join 2 consecutive lines when a pattern is matched
> Date: 20 Jan 2003 12:11:44 +0530
> 
> Hubba,
> 
> >Where \n is new line and \r is carriage return.  When such a pattern is found
> >on a particular line I want to replace this pattern with a space and join this
> >line with the next line.
> >  
> >
> Any text editor  - search - replace.
> 
> Ami
> 
> 
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to