how to find the path of a file listed in another file both files are present in the same directory
eg: new directory has two files test.ctrl and test_files
test_files file has the list of paths of *.ctrl and *.cfg files present in it. I want to find the paths of my test.ctrl and *.ctrl ,*.cfg