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:
That's a strange error to be getting. I recommend trying to find the source of the error.
One thing is to check the pwd command.
type pwd
Make sure it's /usr/bin/pwd or /bin/pwd, and verify it's not a script:
file /usr/bin/pwd
If it is a script, I bet it starts with
#!echo