FINDRULE(1) User Contributed Perl Documentation FINDRULE(1)NAME
findrule - command line wrapper to File::Find::Rule
USAGE
findrule [path...] [expression]
DESCRIPTION
"findrule" mostly borrows the interface from GNU find(1) to provide a command-line interface onto the File::Find::Rule heirarchy of
modules.
The syntax for expressions is the rule name, preceded by a dash, followed by an optional argument. If the argument is an opening
parenthesis it is taken as a list of arguments, terminated by a closing parenthesis.
Some examples:
find -file -name ( foo bar )
files named "foo" or "bar", below the current directory.
find -file -name foo -bar
files named "foo", that have pubs (for this is what our ficticious "bar" clause specifies), below the current directory.
find -file -name ( -bar )
files named "-bar", below the current directory. In this case if we'd have omitted the parenthesis it would have parsed as a call to name
with no arguments, followed by a call to -bar.
Supported switches
I'm very slack. Please consult the File::Find::Rule manpage for now, and prepend - to the commands that you want.
Extra bonus switches
findrule automatically loads all of your installed File::Find::Rule::* extension modules, so check the documentation to see what those
would be.
AUTHOR
Richard Clamp <richardc@unixbeard.net> from a suggestion by Tatsuhiko Miyagawa
COPYRIGHT
Copyright (C) 2002 Richard Clamp. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
File::Find::Rule
perl v5.16.2 2011-09-19 FINDRULE(1)
Check Out this Related Man Page
FINDRULE(1p) User Contributed Perl Documentation FINDRULE(1p)NAME
findrule - command line wrapper to File::Find::Rule
USAGE
findrule [path...] [expression]
DESCRIPTION
"findrule" mostly borrows the interface from GNU find(1) to provide a command-line interface onto the File::Find::Rule heirarchy of
modules.
The syntax for expressions is the rule name, preceded by a dash, followed by an optional argument. If the argument is an opening
parenthesis it is taken as a list of arguments, terminated by a closing parenthesis.
Some examples:
find -file -name ( foo bar )
files named "foo" or "bar", below the current directory.
find -file -name foo -bar
files named "foo", that have pubs (for this is what our ficticious "bar" clause specifies), below the current directory.
find -file -name ( -bar )
files named "-bar", below the current directory. In this case if we'd have omitted the parenthesis it would have parsed as a call to name
with no arguments, followed by a call to -bar.
Supported switches
I'm very slack. Please consult the File::Find::Rule manpage for now, and prepend - to the commands that you want.
Extra bonus switches
findrule automatically loads all of your installed File::Find::Rule::* extension modules, so check the documentation to see what those
would be.
AUTHOR
Richard Clamp <richardc@unixbeard.net> from a suggestion by Tatsuhiko Miyagawa
COPYRIGHT
Copyright (C) 2002 Richard Clamp. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
File::Find::Rule
perl v5.12.4 2011-09-19 FINDRULE(1p)
Hi All,
I am trying to use the find command to search and delete files and have the following scenario. How come the file in the current directory is not getting listed out?
/glo71sw/716/devl/userdata/ftpord --> ls -lt XSKU*
-rw-r--r-- 1 root sys 137493 Jul 7 18:30... (6 Replies)
HI All,
I have recuirement to purge the files in a directory . In that directory i an having many sub-directory .
When i use find command like
find ~/work/test/insert -name "*.*" -mtime +12
it is listing the file not accesed before 12 , It also takes the subdirectories inside the... (7 Replies)
I am writing a script which reads a file line by line and then assigns it to a variable like this 1090373422_4028715212.jpg. I have images with file name of this format in some other directory. In my script I want to assign variable with this file name and then find this filename in some other... (11 Replies)
Hi All,
I am using following find command to delete the records older than 7 days but getting missing conjuction error.Kindly suggest:
The command is:
find <complete_dir_path> \(! -name usr -prune \) -type f -name "*.txt" -mtime +6 -print | xargs rm (11 Replies)
hi all,
I need to find files in a directory which are older than N hrs...
n can be 1,2,3,.. etc
when tried using -mtime option it gives all the files in the last 24hrs from the current time .
please help me out on this ..
thanks (8 Replies)
Hello all,
I am having a hard type in figuring out how to only gather certain files in the current directory without exploring its subdirectories.
I tried:
find . -name "*.ksh" -prune
this also returns ksh files from lower subdirectories.
I also tried
find . -ls -name "*.ksh"
This also... (8 Replies)
Hello,
i am on linux 2.6.13-1.1526_FC4smp , and i would be very greatfull
if someone could help to find the largest files on that server.
I know i can find files with find command or list them with ls ,
but is there a way that i could list let's say 10 biggest files on server ?
:o (11 Replies)
Hi Experts,
Is there a way to find whether a file contains ^M character in it?. It's quite obvious to vi, but can this be accomplished using an automated way to find recursively in a directory.
probably i guess the best way would be to
1) Read the file and check if the end of line is ^M... (8 Replies)
Hi Friends,
I need to find out the number of files available in each directory.
It should list no of files and directory name.
For ex. if there are directories like : /home/Dir1/Dir2/Dir3
I need the output like the following:
Dir1 - x no of files
Dir2 - y no of files
Dir3 - z no of... (9 Replies)
Hi,
I am trying to work on this script that needs to monitor a Directory.
In case there are no files received in that Directory for the last 5 minutes, it has to send out an alert.
Could someone please suggest any approach for the same.
Note: I did check out various previous psts -... (8 Replies)
Hello all,
this is my first and probably not my last question around here. I do hope you can help or at least point me in the right direction.
My question is as follows, I need to find files and possible folders which are not owner = AAA group = BBB with a said location and all sub folders ... (7 Replies)
Hi All,,
I need to find the latest files that are accessed less than 10mins in a particular directory & send those files in an attachment.
I could use the below simple one. But if the directory was not updated any recently i could mail the old file again, i need to eliminate that.. What shld... (8 Replies)