This Assignment requires that you use your Linux scriptingskills to create a script to remove the ctrl-M (Carriage Return).You already have the knowledge on how to use “sed” to strip out thectrl M’s.
The script should take two variable inputs, the first variableis the name of the existing file that needs to be fixed and thesecond should be the name of a new file that your script willcreate with the ctrl-M removed.
fixlines.sh extra_credit.sh fixed_script.sh
Answer