Question:
Solving a shell script issue when bash encounters unwanted linefeed characters 'r' : command not found line
Some operating system shells use linefeed characters 'r' as new line characters (such as some Mac OS). When a script containing these invisible characters are interpreted by Linux or *nix shells, they are flagged as errors, since *nix uses 'n' as new lines. For example they might produce the following error: command not found line
Show how to get rid of these 'r' characters.