Unix Technical Forum

RE: ^M character

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 ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:44 PM
Edwin, Brandt
 
Posts: n/a
Default RE: ^M character

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com