Skip to content

Instantly share code, notes, and snippets.

View shellj's full-sized avatar
:octocat:
Working

Jun Xie shellj

:octocat:
Working
View GitHub Profile
@shellj
shellj / dos2unix.sh
Created January 5, 2021 09:16 — forked from jappy/dos2unix.sh
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