Say folder archive/ contains many folder each created on a day. this folder may contain files. i want to write a script to delete all the folder inside archive/ which are 7 days older. i used the below script for the reason.
find archive -mtime +7 -type d -exec rm -r {} \;
pls suggest me if... (3 Replies)
I want to delete any file in unix file system which is older then a week.
Those files should not be unix system file..means it should be user created file.
Any clue to this ??
ASAP.
Thanks. (2 Replies)
Hi, All,
I'd like to delete files older than 1 day.
I thought the following command
find /your_directory -mtime +1-exec rm -f {} \;
will do the work, but not so, it seems like it won't delete files unless it is 2 days old or older. the files between 1 day and 2 days old does not... (7 Replies)
Hi,
I need a script to delete files that are 30 days older and also the file name should contain aa or ab or ac as substring...
Regards,
Dolly.... (3 Replies)
i have to delete files which are older than 15 days or more except the ones in the directory Current and also *.sh files
i have found the command for files 15 days or more older
find . -type f -mtime +15 -exec ls -ltr {} \;
but how to implement the logic to avoid directory Current and also... (3 Replies)
Dear Friends,
I have two queries.
1) I want to see the list of folders which were created 29 days ago.
2) I want to see the folders in which last created file is older than 29 days.
Can it be done?
Thank you in advance
Anushree (4 Replies)
Hi, I need a .ksh script that lists all the process that are currently running and older than 3 days. once the process list is available i need to mail the list and then kill those processes.
Quick response is highly appreciated :b:
Thanks in Advance!!!
Sri (3 Replies)
Hi All,
OS :- HP-UX wm5qa B.11.23 U ia64 1119805695 unlimited-user license
I need to search files older than 50 days. I've used following command in order to search desired files, I also discoverd, it's showing today's files as well. Do you have any clue with this ?
wmqa1> find .... (4 Replies)
Hi
I want to find the total space used by the files which are older than x days
find ./ -type f -mtime +x-days -name "G00*" -exec du {} \; | awk '{total+=$1}END{print "TOTAL" total}'
Total prints as 17.20 MB ( total / 1024*2 )
But actual size of it will be around 18.5 GB... (1 Reply)
Hello all,
I want to list the files older than 10 days. Currently am using
find ./ -mtime +10 -exec ls -ltr {} \;
command. But I want to execute the same command in 16 directories at a time and want an output asking to remove those file?
Please help me to design the script.
regards,
Ajay (3 Replies)
Discussion started by: 02Ajay
3 Replies
LEARN ABOUT SUSE
gtk2::recentfilter
Gtk2::RecentFilter(3) User Contributed Perl Documentation Gtk2::RecentFilter(3)NAME
Gtk2::RecentFilter
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::RecentFilter
METHODS
recentfilter = Gtk2::RecentFilter->new
$filter->add_age ($days)
o $days (integer)
$filter->add_application ($application)
o $application (string)
$filter->add_custom ($needed, $func, $data=undef)
o $needed (Gtk2::RecentFilterFlags)
o $func (scalar)
o $data (scalar)
$filter->add_group ($group)
o $group (string)
$filter->add_mime_type ($mime_type)
o $mime_type (string)
$filter->add_pattern ($pattern)
o $pattern (string)
$filter->add_pixbuf_formats
boolean = $filter->filter ($filter_info)
o $filter_info (scalar)
string = $filter->get_name
$filter->set_name ($name)
o $name (string)
recentfilterflags = $filter->get_needed
ENUMS AND FLAGS
flags Gtk2::RecentFilterFlags
o 'uri' / 'GTK_RECENT_FILTER_URI'
o 'display-name' / 'GTK_RECENT_FILTER_DISPLAY_NAME'
o 'mime-type' / 'GTK_RECENT_FILTER_MIME_TYPE'
o 'application' / 'GTK_RECENT_FILTER_APPLICATION'
o 'group' / 'GTK_RECENT_FILTER_GROUP'
o 'age' / 'GTK_RECENT_FILTER_AGE'
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::RecentFilter(3)