Search Results

Search: Posts Made By: prasadn
3,756
Posted By prasadn
Script needed to delete to the list of files in a directory based on last created & delete them
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...
4,434
Posted By prasadn
Don Sir, I am getting this error when...
Don Sir,

I am getting this error when executing your code .

+ DIR=/home/, /db/, /staging/
+ DIR_LOG_FILE=/staging/retain_for_2years/unix_clean_up_Test/logs/Trail_list_to_be_deleted.log
+ +...
4,434
Posted By prasadn
Thanks very much Don for replying. The...
Thanks very much Don for replying.

The below is the output

drwxrwxrwx 31 root db2cadm 4096 Feb 27 02:21 /db/
drwxrwxrwx 26 root system 12288 Feb 19 04:27 /db/backup/...
4,434
Posted By prasadn
We need separate log file for each directory is -...
We need separate log file for each directory is - these logs files will be reviewed and if no file is needed we will be removing it.

The suggesting by clx in my other tread is giving below error
...
4,434
Posted By prasadn
Need Help in ksh Script to list files older than 365 days from specified directories
Requirement is to list the files older than 365 days from multiple directories and delete them and log the list of files which are deleted to a log file.

so 1 script should only list files older...
916
Posted By prasadn
this is the script i am using ...
this is the script i am using

#####################This script finds, logs and deletes files and folders older than 365 days.#################
#/bin/ksh

DIRS_TO_FIND="/home/,
...
916
Posted By prasadn
Need Help Urgently - ksh Script
Requirement is to list the files older than 365 days from multiple directories and delete them and log the list of files which are deleted to a log file.

so 1 script should only list files older...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 11:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy