It is currently Tue, 07 Dec 2021 02:53:25 GMT



 
Author Message
 How to insert Carriage Return in a file ?
Hello,

Which is the best method for insert a Carriage-Return in a file ?

I want to replace the Line-Feed at the end of each record with a
Line-Feed and a Carriage-return.

Thanks in advance.

CD.



 Tue, 03 Jun 2003 03:05:24 GMT   
 How to insert Carriage Return in a file ?
How about with a carriage-return, linefeed?

    $ eval `echo m=M | tr M '\015'`
    $ sed "s/$/$m/" filename

---Robert

____________________________________

 >
 > Hello,
 >
 > Which is the best method for insert a Carriage-Return in a file ?
 >
 > I want to replace the Line-Feed at the end of each record with a
 > Line-Feed and a Carriage-return.
 >
 > Thanks in advance.
 >
 > CD.



 Tue, 03 Jun 2003 07:07:35 GMT   
 
   [ 2 post ] 

Similar Threads

1. Need To Insert Carriage Return

2. ftp via Apache proxy inserting Carriage Return

3. carriage returns showup in a script file

4. Need to Strip carriage returns from text file

5. Using ed to remove Carriage Returns from a file

6. Reading a de-limited files across Carriage Returns

7. Removing single carriage returns from file

8. SED - I need to insert hard returns into a file

9. echo with CARRIAGE RETURN

10. cups and carriage returns


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software