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

“The more I study the history of the Orthodox Church in this country, the more I am convinced that our work here is God's work; that God himself is helping us; that when it seems as though everything we do is ready to fail, …on the contrary, it not only does not die, but grows in new strength and brilliance.” [said just before leaving the United States for Russia]
Saint Tikhon, enlightener of America

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