Script basics · Question 11 of 12
A script saved on Windows reports /bin/bash^M: bad interpreter on start. Which commands fix this?
2 answers are correct. Hard Created with AI
Show answer
Answer
- A sed -i 's/\
r$//' s.sh - D dos2unix s.sh
Explanation
Windows ends lines with \