I have set of files residing in my hone directory in different naming conventions as shown below,
ap_aearo_prod.20091104044210.Z.20091106.212217
ap_boise_prod.20091029064716_sorted.Z.20091106.212201
ap_boise_prod.20091029064716.Z.20091106.212158
arms_820i_prod.000003ywS.Z.20091109.064508
I wanted to copy these files to a different location with the filename being only till the "Z" i.e.; this file ap_aearo_prod.20091104044210.Z.20091106.212217 has to be copied as ap_aearo_prod.20091104044210.Z, have to truncate the part after the Z.
I have set of files under this directory. This set of files can be identified by the combination of ap_*_prod*20091106* as I need only these files from this datestamp, I have unwanted files with the same datestamp as well.
Can anyone advise
ap_aearo_prod.20091104044210.Z.20091106.212217
ap_boise_prod.20091029064716_sorted.Z.20091106.212201
ap_boise_prod.20091029064716.Z.20091106.212158
arms_820i_prod.000003ywS.Z.20091109.064508
I wanted to copy these files to a different location with the filename being only till the "Z" i.e.; this file ap_aearo_prod.20091104044210.Z.20091106.212217 has to be copied as ap_aearo_prod.20091104044210.Z, have to truncate the part after the Z.
I have set of files under this directory. This set of files can be identified by the combination of ap_*_prod*20091106* as I need only these files from this datestamp, I have unwanted files with the same datestamp as well.
Can anyone advise