On 9/23/2005 11:28 PM Dave Adams wrote:

Sometimes I get perl scripts that were developed on windows and then
brought over to UNIX and the scripts contain all the pesky
metacharacters of ^M and excessive blank lines.

Does anyone have a simple script to clean these files up or suggestions?

If you are using vi/vim as your editor then this is the good way to deal with it..

:%s/.$//

will remove the last *pesky* character(^M) from all lines....

But as Chris said, did you try anything so far...

--
Ankur

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