2019-08-17 19:35:52 +00:00
|
|
|
IN="$1"
|
|
|
|
OUT="$2"
|
2015-07-20 01:29:25 +00:00
|
|
|
|
|
|
|
# Make Mac OS X's tr and sed not complain that the files are not UTF-8
|
2019-03-19 17:05:08 +00:00
|
|
|
export LC_ALL=C
|
2015-07-20 01:29:25 +00:00
|
|
|
|
|
|
|
# cp $IN/[A-Z]*.r $OUT/
|
2019-08-17 19:35:52 +00:00
|
|
|
for file in $(cd "$IN"; ls [A-Z]*.r); do
|
2019-08-18 11:21:00 +00:00
|
|
|
tr '\r' '\n' < $IN/$file > $OUT/$file
|
2015-07-20 01:29:25 +00:00
|
|
|
done
|
|
|
|
|