sed -i "s/^M//" filenameYou need to enter ^M by pressing Ctrl and then pressing V and M in succession
Remove CTRL-M characters from a file in UNIX
sed -i "s/^M//" filenameYou need to enter ^M by pressing Ctrl and then pressing V and M in succession
sed -i "24s/timeoutValue1/timeValue2/" fileName