-
Notifications
You must be signed in to change notification settings - Fork 8
dos2unix line ending editing utility
Several advanced scripts provided by the Chicago Booth Analytics Club need to be Unix-compliant, and this requires a utility to convert Windows-style line-endings in text files to those of the Unix style.
Install dos2unix
on Mac is easy with the MacPorts
package management system.
With MacPorts
installed, you can install dos2unix
by running command: sudo port install dos2unix
.
Go here to download a zipped installation of dos2unix
for Windows, appropriate for your Windows machine's processor (32-bit / 64-bit).
- look under a section named Binaries, English only to find such zipped files to download
Unzip the installation and move the unzipped folder to a location you prefer.
Go to Control Panel > System > Advanced System Settings > Environment Variables, look under the System Variable section for the variable Path
, and append the following path to the existing text:
;<Your dos2unix Installation Folder>/bin
Verify by launching a new command-line terminal window and run command: where dos2unix
, which should show the path to the relevant executable file.