[clug] Circumflex

Bryan Kilgallin (iiNet) kilgallin at iinet.net.au
Mon Aug 21 02:53:37 UTC 2017


Yes, Kim:

>> The problem was with the sample text file. I think that some unfortunate CR/LF line-ending combination had caused trouble.
> 
> perl -pi.bak -e 's/\r\n/\n/g' Sample.txt
> 
> Will change windows text files with CR/LF into linux text files with just LF.  The original file will be renamed to Sample.txt.bak.

That worked. As the original test file was from an ancient bulletin board.

How am I now to learn Perl (from scratch)?

Is there some (preferably graphical) software that will show me 
otherwise-invisible carriage-returns?
-- 
www.netspeed.com.au/bryan/



More information about the linux mailing list