command to copy files listed in a text file

January 25, 2011 at 04:43:42
Specs: Windows XP
Hi ,

I am trying to copy files listed in list.txt in UNIX

they are listed in the form of

list1.log
list2.log
list3.log

etc... So now i need to copy these files to a directory : OUTDIR

Please help me and This is in UNIX


See More: command to copy files listed in a text file

Report •

#1
January 25, 2011 at 05:29:53
for i in *.log; do cp $i <path>; done

Report •
Related Solutions


Ask Question