I want to go through the files in a directory with a for loop but this comes up.
echo: bad interpreter: No such file or directory
code:
You can find where bash is located using command
whereis bash
and you can copy the bash path to the path where you are seeing bad-interpreter error.