PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: mpeppler at itf dot ch (Michael Peppler)
Subject: Re: Control Characters in a Pattern
Date: Feb 22 1996 3:58PM

> From: Subbarao Chitturi 
> 
> How can I remove control characters in a string?

You'd maybe normally use sed, but as this is a perl mailing list...

sh% perl -p -i.bak -e 's/\r//g;'

This strips all \r (ie ^M) characters from the file, and creates a
{filename}.bak backup copy.

Michael