Example that lists all files in the /tmp directory.
/tmp
#!/bin/sh for filename in /tmp/* do echo $filename done;