[от -y] не понимается в сочетании с другими вариантами
sed -i 's/\r//g' script.sh
#Just execute command above to fix problem replacing script name for yours ;)
Hurt Hare
sed -i 's/\r//g' script.sh
#Just execute command above to fix problem replacing script name for yours ;)