Convert Dos file to Unix file on MAC

1. To make /usr/bin/dos2unix excutable file as below:


#/usr/bin/sh

perl -pi -e 's/\r/\n/g' $*

2. make it excutable

$> chmod +rx /usr/bin/dos2unix

3. To type following script:

$> find . -name "*" -type f -exec dos2unix {} \;

Comments

Popular posts from this blog

[VS2010][VS2015] "stdafx.h 을 포함 소스를 찾을 수 없습니다" 에러 해결법