I want to write a sh script that will find files older than 2 hours and tar them. I've had a look at the find man page but can't see how to do it by hours.
Help please.
Thanx (1 Reply)
I need to write a program that will only remove those files that are older than 2 hours.
Is there some variation of
find . -mtime ? -name '*'
that I can use?
Thanks as always for your help.
Regards,
Dave :) (2 Replies)
What is the command to remove files that are generated 6 hours or older? The find and remove tells only how to remove if the file is one day old or more. Appreciate quick reply. Thanks (3 Replies)
Every day a new .zip file is uploaded to a folder and at mid-night the zip file is to be extracted into a /data/ folder, inside a date-named folder.
# This should extract the contents of a zip file into the /data/ folder into a date based folder
/usr/bin/unzip -a -o... (15 Replies)
I need a script to find files older than 8 hours...
I know i can use mmin but the same is not working...the same only support mtime...
This is the script i created..but the same is only giving 1 hour old..as I have given dt_H as 1 only...but if i give 8..it can go in -(negative)..how to get the... (5 Replies)
Hi all
I have directory /tmp and i have logs are written in it every 18 to 20 hours in date format.
now i need write some if condition which can find which files came into /tmp dir with name start from LOG_`date`.log in last 24 hours.
can somebody help me on this. (2 Replies)
Hi All,
I am using the below script to find all the files in a folder which are older than 6 hours and delete all those files, but some how I am not getting the required output.
find $HOME/Log -type f -name "*.log" -amin +360 -exec rm *.* {} \
can any one please check and let me know... (13 Replies)
How to Deleting Files Older than 1 hours.
Base on SunOS.
this file gen every 1 min.
-rw-r--r-- 1 nobody nobody 4960 Jan 27 02:02 23_201301270201.log
-rw-r--r-- 1 nobody amudu 2325 Jan 27 02:03 33_201301270202.log
-rw-r--r-- 1 nobody amudu 3255 Jan 27 02:03... (2 Replies)
Discussion started by: ooilinlove
2 Replies
LEARN ABOUT SUSE
kcookiejar4
KCOOKIEJAR4(8) KDE User's Manual KCOOKIEJAR4(8)NAME
kcookiejar4 - KDE HTTP cookie daemon
SYNOPSIS
kcookiejar4 [--help] [Generic-options] [Qt-options] [KDE-options] [--shutdown] [--remove domain] [--remove-all] [--reload-config]
DESCRIPTION
kcookiejar4 handles the HTTP cookies providing a D-BUS service to store/retrieve/clean cookies.
GENERIC OPTIONS --author
Show author information.
--help Show help about options.
--help-all
Show all options.
--help-kde
Show KDE specific options.
--help-qt
Show Qt specific options.
--license
Show license information.
-v--version
Show version information
APPLICATION OPTIONS --shutdown
Shut down cookie jar and the D-BUS service.
--remove domain
Removes cookies for domain from the cookie jar.
--remove-all
Removes all the cookies from the cookie jar.
--reaload-config
Reloads the configuration file.
USAGE
KDE web browser konqueror uses kcookiejar4 for storing and managing cookies using the D-Bus service kcookiejar4 provides.
When kcookiejar4 is started without parameters, it provides a D-BUS service to handle HTTP cookies.
When kcookiejar4 is started with some parameters, it does adittional tasks to the cookies jar it provides, like removing the cookies from
one domain.
SEE ALSO kdeoptions(7), qtoptions(7)BUGS
There are probably tons of bugs. Use bugs.kde.org: http://bugs.kde.org to report them.
AUTHORS
Waldo Bastian <bastian@kde.org>, Dawit Alemayehu <adawit@kde.org>.
2008-10-14 KCOOKIEJAR4(8)