You can do something like the following. Suppose I have several files in a directory, in my little test case I have three files called a.txt b.txt c.txt. Then in bash I can use a for loop like this:
for name in `ls` ; do echo now name is $name ; cat $name ; done
The variable $name will contain the current filename, and it will loop through all the filenames listed by the ls command. Of course, instead of the "cat $name" that I used for my test, you would use your own command, like "qe $name" or whatever.
If you don't like separating things with semicolons as above, you can instead write it on separate lines in a script file, like this:
for name in `ls` ; do
echo now name is $name
The "echo now name is $name" part is not necessary, it is just something I like to have to see what the script is doing.