Moon, John wrote:
> Can someone please give me the octal values or a method of removing ^M
> from the end of an input line, if present?

You could use the dos2unix command:

dos2unix yourfile


And if you want to do it with Perl:

perl -i -pe'y/\cM//d' yourfile



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to