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?



On 4 December 2010 03:18, David J Iannucci <jlinux@example.com> wrote:

> I'm no authority on this stuff, but I think that \n doesn't refer to an
> actual character... I think it is an abstraction referring to whatever
> is the line terminator used by the OS at hand (making the other guy's
> statement somewhat tautological :-)

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

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

Although I still can't figure out what possessed me to try it in the
first place...

-- 
Edmund Edgar
Founder, KK Social Minds
Educational Technology for the Web and Virtual Worlds

ed@example.com
+81 090 3912 3380
Skype: edmundedgar
Second Life: Edmund Earp
Linked In: edmundedgar
Twitter: @edmundedgar
http://www.socialminds.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links