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:
I have just come across the same issue and found that my error was in my first line, having
#!bin/bash
instead of
#!/bin/bash