Warning: Undefined variable $HTTP_USER_AGENT in /var/www/vhosts/basil/kbsite/blog/wp-content/themes/redesign/image_switcher.php on line 3
Kevin Basil

Orthodoxy is the best-kept secret in America, and it is our fault — we Orthodox. For too long we have been concerned with maintaining our little ethnic ghettos. America needs the Orthodox faith.
Metropolitan Philip, Antiochian Archdiocese

«— Vatican Again Defends Scientific Description of Creation
—» US Scientist: OK with Killing Embryos, Not OK with Personal Profit from Research

Converting Text Files

Link to this post  


Warning: Undefined property: linknotes::$are_links in /var/www/vhosts/basil/kbsite/blog/wp-content/plugins/linknotes.php on line 73
Share with your friends and followers:
Share

How do I convert between Unix and Mac OS text files?

I’m mostly blogging this so I can remember where to find this stuff in the future. Thanks to lsald on ##mac (irc.freenode.net) for pointing it out.

If you open a file saved in TextEdit.app in a command-line text editor like vi, the line feed characters are all wrong. The file ends up as one huge line with a bunch of blue “^M” characters. The link above gives several command-line options for switching the offending characters out for Unix-style line feeds (and back again, if you were silly enough to want that).

Share with your friends and followers:
Share
Share

Filed under: — Basil @ 1:05 pm