I have the following scenario:
First i have a file in a directory (lets call the file temp)
It look like this(sort of):
In the same dir that i have this file, i also have directorys called
apa, banan, nisse, bertil (in other word, for every entry in the file tmp there are a folder with the same name).
In all of this folder there is a file (lets call it test) that i want to run a command on
(in this case just say i want to make a cat of each file
So what i want is to run some sort of loop that goes through everyone of the folders specified in the file and run a command on a file in each folder.