Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] When is a line feed really a line feed?



Edmund Edgar writes:

 > I've sometimes found I can solve line-return-related problems by doing
 > perl -i.bak -pe 's/\n/\n/g' myfile.txt

If that works, try

    perl -i.bak -p myfile.txt

next time, and enjoy savings of 13 keystrokes.

 > Reading this thread, I think I'm finally starting to understand why
 > that works.

Nope.  There is no explaining why a Perl script works.  Either it does
or it doesn't, but explanations are right out.  Especially for my
version of your script.

Python-rules-ly y'rs,


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links