Removing \r return carriage in linux

Shell scripts will not run if there is a return carriage at the end of the line, something that’s added from windows machine.

cat filename | tr -d "\r" > filename

Leave a Reply

Your email address will not be published.