Referring to the find manpage, -depth is an option while -mtime and -name are tests.
This section (also from the find manpage) describes the "problem with the position of -depth" pretty good, imho. Hope this helps.
These 3 Users Gave Thanks to junior-helper For This Post:
Hi All,
I ran code in test environment to find the files more than 1TB given below is a snippet from code:
FILE_SYSTEM=/home/arun
MAX_FILE_LIMIT=1099511627776
find $FILE_SYSTEM -type f -size +"$MAX_FILE_LIMIT"c -ls -xdev 2>/dev/null |
while read fname
do
echo "File larger than... (3 Replies)
Hi , Kindly help me out .:)
i want to find only the file t4 in directory t3. i am in dir t . the tree is as follows.
if i give,
find .
o/p is
.
./t4
./t1
./t1/t2
./t1/t2/t3
./t1/t2/t3/t4
./t1/t2/t4
./t1/t4
directories are like t/t1/t2/t3 and each directory has file t4.
my... (7 Replies)
Hi
I have a directory say mydir and inside it there are many files and subdirectories and also a directory called lost+found owned by root user
I want to print all files directories and subdirectorres from my directory using find command except lost+found
If i do
find . \( -name... (3 Replies)
Hi,
I am trying to list all the files created / modified today in a directory.
With reference to this thread,
https://www.unix.com/shell-programming-scripting/20324-capture-all-today-files.html
I have used the below command to list all the files modified today.
find . -daystart -type f... (8 Replies)
Hi all,
In a directory, I have many video files. Example :
As you can see, some of the video files come with a .aspx file (wich
means the video is actually being uploaded and not entirely written on
the FS)
I try to write a bash script that would find all video files in the
... (1 Reply)
Hi All,
Could you please help me in searching files in a better way satisfying the below conditions
I want to search files in a path whose access time is more than 5min and less than 60 min and whose Byte size is greater than zero
For this, i am using the below command, but it is... (2 Replies)
Hi,
I am a little bit confusing of using find command.
Actually, I am planning to delete the files whatever the files are existing in the day before yesterday. So, I am writing the command like this.
find . -name "*.txt" -ctime -2 { here I am confusing, if I will use +2 or +1 also I am... (5 Replies)
hello,
i want to use "-depth" in command "find" and want to exclude a directory.
the find command should work in HP-UX and Linux.
i see in the find man page:
-prune
If -depth is not given, true; do not descend the current directory.
If -depth is given, false; no effect.
-depth... (3 Replies)
Hi,
I am not able to get output for find command if there are variables defined inside -name option .
Please check below example
1)
###VARIABLES DEFINED
process="fast"
temperature="125c"
voltage="0p935v"
2) I don't get output for below find command
find -L <PATH> -type f \( -name... (2 Replies)
Discussion started by: gujrathinr
2 Replies
LEARN ABOUT DEBIAN
specrb
SPECRB(1)SPECRB(1)NAME
specrb - standalone test runner for test/spec and Test::Unit test suites
SYNOPSIS
specrb [OPTIONS] [FILES | -a ] [-- untouched arguments]
DESCRIPTION
The Ruby script specrb allows you to run tests written with test/spec from the command line. It can also be used for plain Test::Unit test
suites. You can either specify the names of the test files you want to run, or let specrb find automatically all the tests in your project,
by using the -a switch (see TEST/SPEC OPTIONS below).
You can also use various options on the command line to pass parameters to the Ruby interpreterm or to modify the behavior of test/spec
and/or test/unit.
RUBY OPTIONS -e, --eval LINE
evaluate a LINE of code
-d, --debug
set debugging flags (set $DEBUG to true)
-w, --warn
turn warnings on for your script
-I, --include PATH
specify $LOAD_PATH (may be used more than once)
-r, --require LIBRARY
require the LIBRARY, before executing your script
TEST /SPEC OPTIONS:
-s, --specdox
do AgileDox-like output
--rdox
do AgileDox-like output with RDoc formatting
-a, --automatic
gather tests from ./test/, include ./lib/
TEST ::UNIT OPTIONS:
-n, --name NAME
runs tests matching regexp NAME
-t, --testcase TESTCASE
runs tests in TestCases matching regexp TESTCASE
COMMON OPTIONS :
-h, --help
show a message similar to this manpage
--version
show version
AUTHORS
The test/spec library has been written by Christian Neukirchen <http://purl.org/net/chneukirchen>.
This manual page, inspired by the help message of specrb, has been written for the Debian Project by Cedric Boutillier (but may used by
others).
2012-06-26 SPECRB(1)