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