If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Replacing Control-M Character

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-05, 07:22
pathri pathri is offline
Registered User
 
Join Date: Apr 2004
Location: zxczxczxc
Posts: 52
Replacing Control-M Character

Hi,
I want to know how to replace Control-M character in a filed with space in informix. Any idea how to do it.


Bye.
__________________
zxczxczc
Reply With Quote
  #2 (permalink)  
Old 02-01-05, 11:57
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
if you are talking about a file then

:g/^V^M/s///g

actualy hit the keys control-V and Control-m, the control-V will be invisibale
Reply With Quote
  #3 (permalink)  
Old 02-02-05, 00:27
pathri pathri is offline
Registered User
 
Join Date: Apr 2004
Location: zxczxczxc
Posts: 52
Hi,
Its not in the file. I have control characters in some fileds of the database. When i read the column and if there is a contorl character in the filed, i should replace that control character with a space and write it to a file.


Bye.
__________________
zxczxczc
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On