Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root system 256 Mar 01 16:18 01-MAR-2015_DBSRP3
drwxr-xr-x 2 nobody nobody 256 Mar 01 23:56 01-MAR-2015_DBSRP1
drwxr-xr-x 2 nobody nobody 256 Mar 02 06:40 02-MAR-2015_DBSRP1
and inside there directories it has files as below - based on directory name.
home_list_of_files_to_be_deleted.out
db_ist_of_files_to_be_deleted.out
var_ist_of_files_to_be_deleted.out
I want to have a script which can read the content of these files and delete the files inside them and log what was deleted.