undos.sh 167 B

12345678910
  1. #!/bin/sh
  2. #
  3. # usage: undos <file>
  4. #
  5. # strips CRs from a file - useful when moving DOS-created files
  6. # onto UN*X machines
  7. cat $1 | tr -d "\r" > $1.tmp
  8. mv $1.tmp $1