Up Prev Next
From: Subbarao Chitturi <chitturi at dns1 dot state dot mi dot us>
Subject: Control Characters in a Pattern
Date: Feb 22 1996 3:10PM
How can I remove control characters in a string?
I created a data file on my PC and ftpd the file to the UNIX system so
that I can BCP into Sybase. When I use vi, the last character showns up as ^M.
I want to delete this. It is a redundant character. I am writing a script
to delete such control characters, not only at the end of the line but anywhere
in the file. I know chop function only deletes at the end of the line but what
about finding the control characters set in the middle of the line?
Thank you in advance.
Disclaimer = I question and speak for myself.