How to copy files from dir1 to dir2, matching pattern in a file1? for example:
file1:
T0_1
T0_2
T0_3
Dir1:
T0_1_xxx_xx
E1_1_xxx_xx
T0_2_xxx_xx
E1_2_xxx_xx
E1_3_xxx_xx
T0_2_xxx_xx
I want to copy T0_1_xxx_xx
, T0_2_xxx_xx
, T0_3_xxx_xx
to new dir2. There are 124 names in file1, and 372 files in dir1.