Retro68/prepare-rincludes.sh
2019-08-18 13:21:00 +02:00

12 lines
219 B
Bash

IN="$1"
OUT="$2"
# Make Mac OS X's tr and sed not complain that the files are not UTF-8
export LC_ALL=C
# cp $IN/[A-Z]*.r $OUT/
for file in $(cd "$IN"; ls [A-Z]*.r); do
tr '\r' '\n' < $IN/$file > $OUT/$file
done