This is a discussion on RE: ^M character within the Informix forums, part of the Database Server Software category; --> P.S. sorry if this is MIME'd, we just switched to Outlook, and i do not how to check, or ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| P.S. sorry if this is MIME'd, we just switched to Outlook, and i do not how to check, or turn it off. if it's just a a one time, one file fix, you can just open it in vi and to a global search and replace (remembet to hit crtl-V before ctrl-M). i.e. %s^V^M//g - where the "^" represent you hitting the CTRL key (you will only se ^M on your line) i had this problem once, and a nice person on the UNIX forums wrote this for me.. #! /usr/bin/sed -nf # # \\// H t x s/\n//g p s/.*// h which, you would have to be a script with input and outputs... like # scriptname < infile > outfile helpful? all this is assuming, of course that you are on UNIX. P.S. sorry if this is MIME'd, we just switched to Outlook, and i do not how to check, or turn it off. ________________________________ From: informix-list-bounces@iiug.org [mailto:informix-list-bounces@iiug.org] On Behalf Of Prateek Jain Sent: Friday, August 04, 2006 6:40 AM To: informix-list@iiug.org Subject: ^M character Hi guys, I have got files in directory and all the files have got ^M is there any way to replace all the ^M character in all the file recursively. -- Regards, Prateek Jain |