Solving a shell script issue when bash encounters unwanted


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.

Solution Preview :

Prepared by a verified Expert
Operating System: Solving a shell script issue when bash encounters unwanted
Reference No:- TGS01935264

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)