undos.sh 167 Bytes
Newer Older
Cullen Jennings's avatar
Cullen Jennings committed
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
# 
# usage: undos <file>
# 
# strips CRs from a file - useful when moving DOS-created files
# onto UN*X machines

cat $1 | tr -d "\r" > $1.tmp
mv $1.tmp $1