Summary: Hi, I want to delete files which had been created 2 days ago having names like: er_n5412_output_yyyymmdd.csv.processd from the directory /opt/apps/cc...
Summary: Hi, I am trying to delete log files older than a certain date using a Korn shell script. The best suggestion I've found (on this board) is to calculat...
Summary: I am new to shell scripting. The requirement is as follows: At the beginning of the script, check file creation date. If it's more than 2 days old, re...
Summary: Hi, I have to move files older than 4 hours from a directory to another. How to find these file ? The find command with -mtime can't be applied becaus...
Summary: I have a ftp site, where I am using the following CRON scheduled script to delete all files in sub-directories that are older than 14 days. It works f...
Summary: @echo off ------------------------- :: Description: Deletes files older than a specified number of days :: ++ attributes not set :: :: Author...
Summary: Hi all, I manage to list files in long listing by time last modified and starting with 'N": ls -lt |grep N Can I know how to list files that are ne...
Summary: i have a directory "ABC" with lots of old files and sub directories in it. the issue now is i want to delete away files which are older than 15 days i...
Summary: I need a script for the following criteria. I need to delete files older than the date I am passing in the arguments. E.g: Here are the file names in ...
Summary: Hi, I want to delete directories owned by ID1 if they are older than 2 days and also delete directories owned by rest of the ID's in the same directo...
Summary: I am using HP-UNIX system. I am trying to keep only three days log files in my system, log files older than three days will deleted by a script, now w...
Summary: Hi, I need to pick up files older than 5 days and then do something (move them, actually). This works fine with the find command. However i do NOT wan...
Summary: I think I am facing similar problem on NT. I would like to automatically cleanup all *.txt files older then .... . Any help will be very much apprecia...
Summary: Cristian, The find command is typically used for that, being able to find a list of files or directories qualified by a large combination of qualifier...
Summary: I would use find to get the list of files older than 2 minutes by aging a comparison file. There is a startup penalty while the script waits for the ...
Summary: Hi All: I am a newbie for ksh scripting.My code doesn't work. Can someone help? I am trying to automate the process of file read from a directory. The...
Summary: use the find commad: find /dir -type f -mtime +30 the option -type f will show you only normal files. the option -mtime +30 will show you files which ...
Summary: Hi All, Could someone tell me whats wrong with this script? The script should read a file(the file contains path of files to archive),and then tar the...
Summary: Hello I need to write a simple batch script to delete all the files in a particular directory which are older than 24 hours. Sound simple, but to a n...
Summary: a) check the existance of files in /tmp, not necessary when using the 'find' command. If no files meet your removal or email notification criteria, n...
Summary: Hi, I too am a 'newbie' at scripting. This is a problem that I have been stuck on for a while. I have a script that is creating files from another...
Summary: Hi All, Basically,I intend to purge files older than say 7days and archive some useful files.The point is,I intend to create two separate files contai...
Summary: Dear Friend , There is no possibility of regetting the deleted files.The best solution is we can change the functionality of rm to another command. ...