Hello
can someone please help me with this task:
I am in the shell, in folder "Main"
below the folder Main are sub folders: "sourceA", "Source B", and "target"
in sourceA and source B are files, and in folder "Main" is a textfile, with filenames, one filename per line.
I need a shellscript that:
1. reads the textfile line per line...
2. finds the file either in sourceA or sourceB and copies it to "target"
3. or, if the searched file is in neither folder, writes an error like "File XY not found" into a new textfile
Thank you very much in advance for looking into this