Newer
Older
invertedlogic / Scripts / dos2unixMulti.sh
#!/bin/bash

while [ $# -ge 1 ]
do
    if ! [ -e $1 ]
    then
         echo "Error: $1 not found. Bailing out"
         exit 1
    fi

    cat $1 | tr -d '\015' > tmp.x
    mv tmp.x $1

    shift
done