11-13-2006
Find For Mins
Hello ,
In addition to the problem , if i want to find and remove the files made in last 5 mins then what will be the command as , i have searched for many coomand but all depend upon days not time!!!
KRegards,
Aparna
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
need help with this ...
Find files older than 5 days and remove tem after listing
list "test" file older than 5 days and then remove them (1 Reply)
Discussion started by: ypatel6871
1 Replies
2. Red Hat
Hi,
I have dummies questions:
My script here can find the files in any directories older than 30 days then it will delete the files but not the directories. I would like to also be able to delete the directories that hold old files more than 30 days not just the files itself.
find . -type f... (2 Replies)
Discussion started by: lamoul
2 Replies
3. Shell Programming and Scripting
Hi,
I'm Eddy from Belgium and I've the following problem.
I try to write a ksh script in AIX to tar, compress and remove the original *.wav files from the directory belgacom_sf_messages older than two days with the following commands.
The problem is that I do not find a good combination... (4 Replies)
Discussion started by: edr
4 Replies
4. Shell Programming and Scripting
Hello all,
Here's the deal...I have one directory with many subdirs and files.
What I want to find out is who is keeping old files and directories...say files and dirs that they didn't use since a number of n days, only one level under the initial dir. Output to a file.
A script for... (5 Replies)
Discussion started by: ejianu
5 Replies
5. Shell Programming and Scripting
Hi
I need help in the script which looks at a contorl file which has a list of file names like xxxx.12345 and I want to take only xxxxx and search in a specific directory and remove the file if its older than 60 days
I have written something like this.. but seems to be wrong... (1 Reply)
Discussion started by: antointoronto
1 Replies
6. UNIX for Advanced & Expert Users
Hi Gurus,
I have command to delete more than 180days file.
find /home/abc/ -name "CBST_*.txt*" -mtime +180 | xargs -n 100 rm -f
Now I would like to delete more than 180days Non empty directory--What will be command?
Following is non empty directory as instance CBST2010* (2 Replies)
Discussion started by: thepurple
2 Replies
7. Shell Programming and Scripting
Hi All,
I am new to the scripting and using solaris 10 OS. Please suggest me from the below script which modifications need to be done to delete the files more that 2days older. Current script is deleting existing file.
# Remove old explorer runs if needed
DIR=`dirname ${EXP_TARGET}`
if ... (2 Replies)
Discussion started by: Navkreddy
2 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
how to compress the directories which is older 7 days.
If any one knows please help me this is urgent.
Thanks in advance (3 Replies)
Discussion started by: rameshpagadala
3 Replies
9. Shell Programming and Scripting
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 than 365 days for each directory separately to a folder
The other script should read these files... (7 Replies)
Discussion started by: prasadn
7 Replies
10. Shell Programming and Scripting
Hi All,
Need help in identifying a shellscript command to remove all files on a server directory, starting with a certain prefix and also older than 3 days.
That means files created with that prefix, today or yesterday, shouldn't be removed.
Thanks,
Dev (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT DEBIAN
update-metainit
UPDATE-METAINIT(1) User Contributed Perl Documentation UPDATE-METAINIT(1)
NAME
update-metainit - Generates init scripts
SYNOPSIS
update-metainit [--remove initname [--purge] ]
DESCRIPTION
Metainit solves the problem of writing good init scripts. Instead of manually creating these important files, they are derived from a
declaritive description in the metainit files in /etc/metainit. These files can be shipped with packages or created by the local adminis-
trator.
If update-metainit called without argument, it will regenerate init scripts for all the files in /etc/metainit. The generated files contain
a large warning in form of a comment that they will be overridden. Modifications are preferably done in the files in /etc/metainit and made
effective by running update-metainit. If needed, the administrator can prevent modified init files by removing the warning comment.
OPTIONS
--remove initname
This command will remove any generated and non-modified scripts that were created by the metainit file with the name initname.
--purge
Only usable with --remove. Will remove the generated files even if modified.
SEE ALSO
dh_metainit(1)
AUTHOR
Joachim Breitner <nomeata@debian.org>
perl v5.8.8 2007-07-30 UPDATE-METAINIT(1)