Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Varchar/delimiter problem 1

Status
Not open for further replies.

similici

Programmer
Nov 15, 2005
7
US
I have a table with a field declared varchar(15,0) .
When I make a statement like "select nume_field from table_name ..." the record returned is

AMI/|? IT 00


but when I'm unloading into a file

("unload to file.txt select nume_field from table_name...")

it looks like this:

AMI/^S|^M? IT 00

How can I lose the Ctrl+S, Ctrl+M characters?

Can you help me?
Thank you .
 
You may use:
sed 's/^M//g' input_file > output_file

Note: ^M is Ctrl+v Ctrl+m
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top