Archive for the 'Terminal' Category

Convert Windows Line endings to Unix / OS X

After reading a Windows user’s nightmare of having to convert hundreds of files, I thought I’d post this solution. If you need to convert Windows line endings to Mac / Unix ones, you need to execute this command in Terminal. (This solution doesn’t add extra line-endings that some do)

$ cd /directory/with/your/files
$ find . -type f […]

Miscellaneous Terminal Basics

This is a random list of useful stuff for Terminal beginners. I’ll just add things as they come to mind.
TextWrangler
Rather than trying to faff around in Pico or vi, you can use the excellent and free Textwrangler from Barebones.
Want to edit an invisible file like .profile? Just drag a directory onto TextWrangler in the dock, […]