Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/rc/undos
#!/bin/rc # remove \r and ^Z from a file (MSDOS files) for ( f in $* ) if ( test -f $f ){ tr -d '\032\015' < $f > $f.$pid && mv $f.$pid $f rm -f $f.$pid }