Skip to content

Instantly share code, notes, and snippets.

View HKhademian's full-sized avatar
🏠
Working from home

Hossain Khademian HKhademian

🏠
Working from home
View GitHub Profile
@jappy
jappy / dos2unix.sh
Created March 10, 2012 18:03
Shell script to convert files with CRLF to LF (Mac/Linux)
#! /bin/sh
for x
do
echo "Converting $x"
tr -d '\015' < "$x" > "tmp.$x"
mv "tmp.$x" "$x"
done