fixcrlf – delete "\r" from files, or from stdin if no files are specified – useful in CygWin when pasting scripts to files
fixcrlf
#!/bin/dash if [ $# = 0 ]; then sed -e "s/\r//" else sed -i -e "s/\r//" "$@" fi