Sponsored Content
Top Forums UNIX for Beginners Questions & Answers find -depth ..How to use it ? Post 303012776 by abdulbadii on Thursday 8th of February 2018 11:49:06 PM
Old 02-09-2018
find -depth ..How to use it ?

I tried to find a file lives within curent directory only, and typed

Code:
$ find  . -depth 1 -ls -name *.ini

But it gave me,

Code:
find: paths must precede expression: 1
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]

How'd I do it correctly ? Thanks in advance.

Last edited by abdulbadii; 02-09-2018 at 02:28 AM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

mq queue depth

hi how to find the queue depth of MQ Queue using unix please its very urgent (0 Replies)
Discussion started by: Satyak
0 Replies

2. Shell Programming and Scripting

Controlling depth with find

I have the following script: Now they have added on a new requirement, they only want to go to a certain depth in the directories returned. How do I code it to only go say 3 directories deeper than $DIRECTORY? (12 Replies)
Discussion started by: la_womn
12 Replies

3. Programming

find depth using ftw

Hello, I am looking for specific files in my tree directory using ftw(3). How do I know how deep I am in the file structure.. in other words, say I am looking for config.txt files, and my structure looks like this.. /some/directory/user1/config.txt /some/directory/user2/config.txt ....... (2 Replies)
Discussion started by: germallon
2 Replies

4. UNIX for Dummies Questions & Answers

cmd find: exclude directory when using option -depth

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)
Discussion started by: bora99
3 Replies

5. Shell Programming and Scripting

Understanding find -depth

I was looking at a code and stumbled over the option -depth of find command After searching what -depth does I found the below: -depth Process each directory's contents before the directory itself. Does it mean the sub directories are processed before the current directory in the search... (1 Reply)
Discussion started by: zulfi123786
1 Replies

6. Shell Programming and Scripting

MQ depth Periodically

Hi I am trying to a write a script which gives message queue depth for every 5 mins in a file. Commands that I use are runmqsc QM_Name display ql(*) curdepth Since I can use only MQSC commands I need help on how to fetch the output on to a file after executing display command. (3 Replies)
Discussion started by: jhilmil
3 Replies

7. Shell Programming and Scripting

Understand the importance of -depth option in find command.

Hi All, Can you please help me in understanding the importance of -depth of find. I am trying to execute below code.find . -mtime +5 -name "*" -depth -exec ls -l {} \; But it is throwing below error.find: warning: you have specified the -depth option after a non-option argument -mtime,... (2 Replies)
Discussion started by: Girish19
2 Replies

8. Windows & DOS: Issues & Discussions

Folder Depth in Samba

A few of our users are adept at creating folders like 2015\2015 something\event\2015 event\document\2015 which makes their documents close to impossible to find. Is there any way I can restrict the depth of the folders they are allowed to create? (1 Reply)
Discussion started by: Corona688
1 Replies

9. Shell Programming and Scripting

MQ Queue depth.

Hi All, We have SuoOs and Linux servers. May i know how do we find the queue depth of IBM MQ from server. (2 Replies)
Discussion started by: Girish19
2 Replies
GO::Model::GraphIterator(3pm)				User Contributed Perl Documentation			     GO::Model::GraphIterator(3pm)

NAME
GO::Model::GraphIterator - Graph iterator SYNOPSIS
$it = $graph->create_iterator; # returns a GO::Model::GraphIterator object while (my $ni = $it->next_node_instance) { $depth = $ni->depth; $term = $ni->term; $reltype = $ni->parent_rel->type; printf "%s %8s Term = %s (%s) // depth=%d ", "----" x $depth, $reltype, $term->name, $term->public_acc, $depth; } DESCRIPTION
SEE ALSO
GO::Model::Graph GO::Model::GraphNodeInstance order Usage - $graphiter->order("breadth"); Returns - string Args - string gets/sets traversal order; breadth or depth; default is depth direction Usage - $graphiter->direction("up"); Returns - string Args - string gets/sets direction; default is "down" compact Usage - $graphiter->compact(1); Returns - bool Args - bool set this if you dont want relationships to be traversed twice; this gives a more compact tree representation of the graph reltype_filter Usage - $graphiter->reltype_filter(qw(is_a part_of)) Returns - array Args - array by default, all relationship types are treated as transitive, and will be traversed by the iterator sometimes you dont want to traverse all relations, even if they are transitive. For example, when answering the query "find all genes expressed in the embryo" you way want subtypes of embryo and parts of the embryo but not things that develop_from the embryo. For more details, see <http://sourceforge.net/mailarchive/forum.php?thread_id=9448679&forum_id=43082> reset_cursor Usage - Returns - Args - next_node Usage - Returns - GO::Model::Term Args - next_node_instance Usage - Returns - GO::Model::GraphNodeInstance Args - flatten Usage - Returns - Args - _sortby_pos_in_list Careful, this sort function work on Term objects, not GraphNodeInstance objects. Comparison is done by the name of the term. perl v5.14.2 2013-02-07 GO::Model::GraphIterator(3pm)
All times are GMT -4. The time now is 02:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy