I have a list file with names of files, i want read one file name from the list at a time and look for it under a directory structure with multiple sub folders and then once found move it into a diff folder.
Ex:
listfile.txt
Content of the file--
filename1.txt
filename2.txt
maindir
|--subdir1
|---subdir2/filename1.txt
|---subdir3/filename2.txt
read file names from listfile.txt one by one and move them to a diff folder say /destfolder.
Any suggestion would be great.
Thanks, Kavin