Convert files from Dos to Unix
You need to install dos2unix
command line tool:
- for OS X, you can install it via brew,
brew install dos2unix
- for Debian family systems, just call
apt-get install dos2unix
-
and execute following line (all files with
txt
extension will be converted into to Unix files type)$ find . -type f -name "*.txt" -exec dos2unix {} \;
Written by Bartłomiej Danek
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#