It’s been over 15 months since I moved to Mac (Unix-based) OS. Not too often but I still have to modify code that I wrote during my Windows days. The most common problem opening a DOS-formatted text file (PHP file in this case) is getting a ^M at the end of every line. Which looks something like this:
BE SURE YOU MAKE the ^M USING “CTRL-V CTRL-M” NOT BY TYPING “CARET M”! This expression will replace all the ^M’s that have carriage returns after them with nothing. (The dollar ties the search to the end of a line)
This entry was posted on Thursday, January 4th, 2007 at 12:18 pm and is filed under Technology, Work @ Tenmiles. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.