For example, a directory may contain files
12_foo9.dat 34foo32.txt 24foobar.png 997_bar.txt
and I would like to copy the files named "foo" in the file names to a separate directory so that it contains these first three files, but not the fourth.
I looked around, but did not understand how to do this. The directory has a very large number of files, but only 1% or so of what I need to copy.
thanks
user1811736
source share