#!/bin/bash # fix line endings on the arg OLD=$1.old NEW=$1 cp -r $NEW $OLD tr '\r' '\n' < $OLD > $NEW