Sponsored Content
Top Forums Shell Programming and Scripting How to find files by hours old? Post 302297044 by llsmr777 on Thursday 12th of March 2009 11:35:03 AM
Old 03-12-2009
How to find files by hours old?

I need to be able to do the following:

Find files in multiple directories that are 6 hours older than the current time?
I am using KSH
I tried mmtime but it was not a valid option

Any help would be great. Thank you!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find -mtime +2? means after 48 hours..

find /oracle/sydf/arch -mtime +2 -name 'sydf*' -type f -exec rm -f {} \; this means after 48 hours remove the files..... i am not sure about the command type f -exec rm -f {} \; does it means, check for files, then execute it .. then what doesw the {} and \ and ; means ? (1 Reply)
Discussion started by: yls177
1 Replies

2. Shell Programming and Scripting

unix command/s to find files older than 2 hours in a directory

I need to write a script to find files older than 2 hours in set of direcotries and list them ina mail. I know find command ti list files greater/lesser than days but i need to do it for hours. Any input. (6 Replies)
Discussion started by: Presanna
6 Replies

3. AIX

how to find files older than 2 hours

I need help to find files in a directory that are older than 2 hours. Any help would be great. (3 Replies)
Discussion started by: pt14
3 Replies

4. Shell Programming and Scripting

how to list files between last 6 hours to 3 hours

Hi Frens, I want to list some files from a directory, which contains "DONE" in their name, i am receiving files every minute. In this i want to list all the files which are newer than 6 hours but older than 3 hours, of current time i dont want my list to contain the latest files which are ... (4 Replies)
Discussion started by: Prat007
4 Replies

5. Shell Programming and Scripting

Find files older than 8 hours

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)
Discussion started by: cotton
5 Replies

6. Shell Programming and Scripting

files older than few hours

Hi All I need to know the command which can be used to list the files which are 3 hours old so that it can be deleted. (3 Replies)
Discussion started by: mskalyani9
3 Replies

7. UNIX for Advanced & Expert Users

find files modified by hours instead of minutes

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)
Discussion started by: cokedude
1 Replies

8. UNIX for Dummies Questions & Answers

find the no of processes that ran 2 hours before or earlier

Is there a way to find out the total no of processes that were running ? - 2 or 3 hours before - list those no of processes (3 Replies)
Discussion started by: jansat
3 Replies

9. UNIX for Dummies Questions & Answers

Find command to get the modified files past 2 hours

Hello, How to get the modified/created files past 2 hours in Solaris with find command? Thank you. (7 Replies)
Discussion started by: balareddy
7 Replies

10. Shell Programming and Scripting

Find hours difference between two dates in given format

I have two dates in below format, how would I find the hours difference between the two dates. Im using AIX and ksh. Current date : Wed May 17 14:34:41 SGT 2017 File date : Thu Apr 27 20:52:41 SGT 2017 (3 Replies)
Discussion started by: simpltyansh
3 Replies
Pod::Find(3pm)						 Perl Programmers Reference Guide					    Pod::Find(3pm)

NAME
Pod::Find - find POD documents in directory trees SYNOPSIS
use Pod::Find qw(pod_find simplify_name); my %pods = pod_find({ -verbose => 1, -inc => 1 }); foreach(keys %pods) { print "found library POD `$pods{$_}' in $_ "; } print "podname=",simplify_name('a/b/c/mymodule.pod')," "; $location = pod_where( { -inc => 1 }, "Pod::Find" ); DESCRIPTION
Pod::Find provides a set of functions to locate POD files. Note that no function is exported by default to avoid pollution of your namespace, so be sure to specify them in the use statement if you need them: use Pod::Find qw(pod_find); From this version on the typical SCM (software configuration management) files/directories like RCS, CVS, SCCS, .svn are ignored. "pod_find( { %opts } , @directories )" The function pod_find searches for POD documents in a given set of files and/or directories. It returns a hash with the file names as keys and the POD name as value. The POD name is derived from the file name and its position in the directory tree. E.g. when searching in $HOME/perl5lib, the file $HOME/perl5lib/MyModule.pm would get the POD name MyModule, whereas $HOME/perl5lib/Myclass/Subclass.pm would be Myclass::Subclass. The name information can be used for POD translators. Only text files containing at least one valid POD command are found. A warning is printed if more than one POD file with the same POD name is found, e.g. CPAN.pm in different directories. This usually indicates duplicate occurrences of modules in the @INC search path. OPTIONS The first argument for pod_find may be a hash reference with options. The rest are either directories that are searched recursively or files. The POD names of files are the plain basenames with any Perl-like extension (.pm, .pl, .pod) stripped. "-verbose => 1" Print progress information while scanning. "-perl => 1" Apply Perl-specific heuristics to find the correct PODs. This includes stripping Perl-like extensions, omitting subdirectories that are numeric but do not match the current Perl interpreter's version id, suppressing site_perl as a module hierarchy name etc. "-script => 1" Search for PODs in the current Perl interpreter's installation scriptdir. This is taken from the local Config module. "-inc => 1" Search for PODs in the current Perl interpreter's @INC paths. This automatically considers paths specified in the "PERL5LIB" environment as this is included in @INC by the Perl interpreter itself. "simplify_name( $str )" The function simplify_name is equivalent to basename, but also strips Perl-like extensions (.pm, .pl, .pod) and extensions like .bat, .cmd on Win32 and OS/2, or .com on VMS, respectively. "pod_where( { %opts }, $pod )" Returns the location of a pod document given a search directory and a module (e.g. "File::Find") or script (e.g. "perldoc") name. Options: "-inc => 1" Search @INC for the pod and also the "scriptdir" defined in the Config module. "-dirs => [ $dir1, $dir2, ... ]" Reference to an array of search directories. These are searched in order before looking in @INC (if -inc). Current directory is used if none are specified. "-verbose => 1" List directories as they are searched Returns the full path of the first occurrence to the file. Package names (eg 'A::B') are automatically converted to directory names in the selected directory. (eg on unix 'A::B' is converted to 'A/B'). Additionally, '.pm', '.pl' and '.pod' are appended to the search automatically if required. A subdirectory pod/ is also checked if it exists in any of the given search directories. This ensures that e.g. perlfunc is found. It is assumed that if a module name is supplied, that that name matches the file name. Pods are not opened to check for the 'NAME' entry. A check is made to make sure that the file that is found does contain some pod documentation. "contains_pod( $file , $verbose )" Returns true if the supplied filename (not POD module) contains some pod information. AUTHOR
Please report bugs using <http://rt.cpan.org>. Marek Rouchal <marekr@cpan.org>, heavily borrowing code from Nick Ing-Simmons' PodToHtml. Tim Jenness <t.jenness@jach.hawaii.edu> provided "pod_where" and "contains_pod". Pod::Find is part of the Pod::Parser distribution. SEE ALSO
Pod::Parser, Pod::Checker, perldoc perl v5.16.2 2012-10-11 Pod::Find(3pm)
All times are GMT -4. The time now is 12:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy