Skip to content

Instantly share code, notes, and snippets.

@raghothams
Created January 8, 2014 16:39
Show Gist options
  • Save raghothams/8319785 to your computer and use it in GitHub Desktop.
Save raghothams/8319785 to your computer and use it in GitHub Desktop.
Convert Dos to unix eol. Remove ^M
#!/bin/bash
cd ${1}
for f in `find .*rc`; do
echo $f
tr -d '\15\32' < $f > $f.tr
mv $f.tr $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment