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)
I am trying to write a Korne Shell asking the user for a date and a directory and then search recursively in this directory the list of files modified after the date chosen. But I am not getting good results when I Test it...
#!/usr/bin/ksh
echo "Enter a date (YYYYMMDD) "
read date
touch -t... (2 Replies)
which out of atime, ctime, or mtime are the closest to diplaying only the files created within the last 24 hours. is it even possible to find only the files created in the last 24 hours, because I heard that unix files don't hold the creation time as a property of the file. (3 Replies)
Dear all,
Need a quick help/suggestion on monitoring a particular directory .
We have a deployment directory say (/users/integration/deploy ) under this there are several files which can be edited by a number of users -
We need to write a script which will check this deployment directory... (5 Replies)
Hi,
I am new bie to Unix. Might be a simple question I am asking.
I want to find the last modified time of a file and find the difference between the currrent time and the last modified time. Appreciate, if someone can throw some light on what commands can be used.
Cheers,
James (2 Replies)
Hi there
Im trying to find a way to test whether the last modified time is older than 1 day or not
so
#!/bin/bash
if ; then
$TOUCHED = "recently"
else
$TOUCHED = "not so recently"
fi
ive seen loads of posts where people are using find and the -mtime property but i... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Here is the question:
Make a list of files in your home directory that were changed less that 10 hours ago,... (3 Replies)
Is there an easy way to find files modified by hours? If you wanted to find something modified by like 28 hours then I know you could do this:
find . -mmin -1440It is pain to break out a calculator and calculate in minutes. Could you do something similar to this? I know I don't have the right... (1 Reply)
I am trying to look into multiple directories and pluck out the latest version of a specific file, regardless of where it sits within the directory structure.
Ex:
The file is a .xls file and could have a depth within the directory of anywhere from 1-5
Working directory - Folder1... (6 Replies)
Config::Model::models::Debian::Dpkg::Source::Options(3pmUser Contributed Perl DocumentatiConfig::Model::models::Debian::Dpkg::Source::Options(3pm)NAME
Config::Model::models::Debian::Dpkg::Source::Options - Configuration class Debian::Dpkg::Source::Options
VERSION
version 2.021
DESCRIPTION
Configuration classes used by Config::Model
list of long options that should be automatically prepended to the set of command line options of a dpkg-source -b or dpkg-source
--print-format call. Options like --compression and --compression-level are well suited for this file.
Elements
diff-ignore - perl regexp to filter out files for the diff
perl regular expression to match files you want filtered out of the list of files for the diff.This is very helpful in cutting out
extraneous files that get included in the diff, e.g. if you maintain your source in a revision control system and want to use a checkout to
build a source package without including the additional files and directories that it will usually contain (e.g. CVS, .cvsignore, .svn/).
The default regexp is already very exhaustive, but if you need to replace it, please note that by default it can match any part of a path,
so if you want to match the begin of a filename or only full filenames, you will need to provide the necessary anchors (e.g. '(^|/)',
'($|/)') yourself.Optional. Type uniline.
extend-diff-ignore - Perl regexp to extend the diff-ignore setup
The perl regular expression specified will extend the default regular expression associated to diff-ignore by concatenating "|regexp" to
the default regexp. This option is convenient to exclude some auto-generated files from the automatic patch generation.Optional. Type
uniline.
SEE ALSO
o cme
AUTHOR
Dominique Dumont <domi.dumont@free.fr>
LICENSE
LGPL-2.1
perl v5.14.2 2012-11-09 Config::Model::models::Debian::Dpkg::Source::Options(3pm)