Explore BrainMass
Share

Explore BrainMass

    Solving a shell script issue when bash encounters unwanted linefeed characters 'r' : command not found line

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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.

    © BrainMass Inc. brainmass.com October 10, 2019, 5:20 am ad1c9bdddf
    https://brainmass.com/computer-science/operating-systems/solving-shell-script-issue-501577

    Solution Preview

    Some operating system shells use linefeed characters 'r' as new line characters (such as some Mac OS). When a script containing these invisible ...

    Solution Summary

    This solution shows how to remove the invisible 'r' characters that are interpreted as errors by Linux.

    $2.19