Q1 How do you remove the Control-M characters from a file? A1 Using the sed command that replaces Control-M with nothing
1 | sed 's/^M//g' ReadWriteFile.sh > ReadWriteFileNew.sh |
Note: The ^M is typed on the command line with ctrl+v and ctrl+M
1 | dos2unix ReadWriteFile.sh ReadWriteFile.sh |
Q2 How will you…