Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Deleted files between date range Post 302900573 by Don Cragun on Wednesday 7th of May 2014 03:58:59 PM
Old 05-07-2014
So, if we look at the files in /sapmnt/<SID>/global/<clint>JOBLG, how do we know which ones are wanted and which ones are unwanted? For those files that are unwanted, what dates delimit the range in which unwanted files are to be deleted?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Moving Files within a particular date range

Hi, Can someone please help me with this. Actually i want to move files from one directory to another directory , But I just want to move files of a specific data range. For ex: This is my directory which contains all fine. /home/Rooh Then there is a long listing of files. suppose this... (3 Replies)
Discussion started by: rooh
3 Replies

2. UNIX for Dummies Questions & Answers

cp only files in certain date range

hi all, I'm trying to do a cp only on files I created on a given day or within a certain date range. What's the best way to do this? Cheers, KL (1 Reply)
Discussion started by: ee7klt
1 Replies

3. UNIX for Dummies Questions & Answers

How to display files that have been modifed between a given date range

Hi, I am new to Unix and was trying different ways of how to display the list of file names modified between a given date range in sorting order.I will get the fromdate and Todate from the browser, I need to display the list of all the file names that are modified between the given date... (1 Reply)
Discussion started by: prathima
1 Replies

4. UNIX for Advanced & Expert Users

How can i copy files by date last modifed range?

When I do a ls -lt I get a list of files by date modified from newest to oldest. I would like to be able to copy some files to another directory using a date last modified range (i.e. Apr 30 - May 13) How could I do this? Thanks, Joe (4 Replies)
Discussion started by: geauxsaints
4 Replies

5. Shell Programming and Scripting

Search files between a date range

Hi people A newbie here, thrown into the deep end. I want to select the group of files with in a range of dates and perform some operation on it. Are there inbuild date libraries i can use? I did read thru the old posts on this topic. Couldnt get much idea :(, basically want to know how I... (7 Replies)
Discussion started by: zcanji
7 Replies

6. UNIX for Dummies Questions & Answers

Coping Files for a specific date range

Hi, we have file name appended by date in yymmdd format .. ex: abc090101.dat I need to copy all the files between abc090101 to abc090331.. could you plz help me.. Thanks. (1 Reply)
Discussion started by: kolariya4u
1 Replies

7. Shell Programming and Scripting

List files with Date Range and Zip it

Hi all, I am using the below script which display the files in the folder with the date range we specify. I want to add extra functionality that, The listing files should be zipped using gzip. I tried to add exec gzip at the last line but it is not working. Suggestions please. ... (2 Replies)
Discussion started by: nokiak810
2 Replies

8. UNIX for Dummies Questions & Answers

Help with removing files with date range

Hi, I want to remove trace files in a particular directory for a specific date range. Currently i can remove based on time (e.g find /path/*.trm -mtime +1000 -exec rm {} \;). But i want to remove .trm files within a date range. E.g to remove .trm files between jan 1 2002 to April 15 2005. ... (3 Replies)
Discussion started by: dollypee
3 Replies

9. Red Hat

Find Files within date Range

Hi i am looking to expand a command i am using to find files in a large file system. i am currently using find /raid/JOBFLOW_LOCKED/ -type f -size +3G | -exec mv {} /raid/JOBFLOW_LOCKED/KILL \; This works really well but i would like to add a date range to the same command to refine it... (6 Replies)
Discussion started by: treds
6 Replies

10. UNIX for Dummies Questions & Answers

Find the count of files by last created date based on the given date range

My unix version is IBM AIX Version 6.1 I tried google my requirement and found the below answer, find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20" But newer command is not working in AIX version 6.1 unix I have given my requirement below: Input: atr files: ... (1 Reply)
Discussion started by: yuvaa27
1 Replies
DIRVISH-EXPIRE(8)					      System Manager's Manual						 DIRVISH-EXPIRE(8)

NAME
dirvish-expire - delete expired dirvish images SYNOPSIS
dirvish-expire[OPTIONS] DESCRIPTION
Delete dirvish image trees or whole images that have expired. Each image summary file is checked for the Expire: field. If that field indicates the image has expired dirvish-expire will delete that image from the vault. By default all subdirectories of all banks will be treated as vaults and all directories therein except the one named dirvish will be checked for summary files. The removal of an image will have no effect on other images. Dirvish-expire will not delete an image unless it finds at least one image in that branch that has an intact image tree and Status: success in the summary that is not expired. OPTIONS
Each option on the command line may be specified any number of times. Those options that support lists in the config files will accumulate all of their arguments otherwise each specification will override the ones before. Each option may be unambiguously abbreviated. --time time_expression Execute as though time_expression were the current time. Time_expression is processed by Time::Parsedate(3pm) so relative time and date strings are permitted. See Time::Parsedate(3pm) for more details. --tree Only delete the image tree, leave in place the rest of the image directory with summary, log and any other image administrative files. --vault vault Restrict expiration to the specified vault. --no-run Don't actually do anything. Just display what would have happened. --quiet Run quietly, only report errors. Normally dirvish-expire will report the images deleted. EXIT CODES
To facilitate further automation and integration of dirvish-expire with other tools dirvish-expire provides rationalised exit codes. The exit codes are range based. While the code for a specific error may change from one version to another it will remain within the specified range. So don't test for specific exit codes but instead test for a range of values. To the degree possible higher value ranges indicate more severe errors. 0 success 200-219 An error was encountered in loading a configuration file. 220-254 An error was detected in the configuration. 255 Incorrect usage. FILES
/etc/dirvish/master.conf alternate master configuration file. /etc/dirvish.conf master configuration file. bank/vault/image/summary image creation summary. bank/vault/image/tree actual image of source directory tree. SEE ALSO
dirvish.conf(5) Time::ParseDate(3pm) BUGS
Dirvish-expire will walk the file hierarchy of all banks or the specified vault looking for summary files. Anything non-dirvish in there may cause excess file-walking. DIRVISH-EXPIRE(8)
All times are GMT -4. The time now is 09:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy