Script to searcha nd copy files

view full story

http://www.unix.com – HI everyone, I been to this site before for help and found my answers on other threads now I am posting my own :). I have a list of file names with out extensions on an txt file. I need a way for the script to search on the server for each file name and copy the files over to a new directory. Does anyone know how to? I tried running xargs -a gold.txt cp /path/directoy/ but i got an error. I know this is close to what I need but i know it will ask for path of each file which I don't have. I would really appreciate the help. Thank you. (HowTos)