Alright, before this is immediately closed as a duplicate, let me explain. I have attempted many methods such as:
for d in /Applications ; do echo "$d" done
but that returns
instead of the contents of /Applications.
I also tried:
#!/bin/bash FILES=/Applications for file in $FILES do echo $file done
Which is basically the same thing. I noticed, though, that when I just do:
#!/bin/bash for file in * do echo $file done
It correctly echoes all of the folders in my home folder. Anyone know what's going on?