Sponsored Content
Top Forums Shell Programming and Scripting Find command with ignore directory Post 302783513 by hanson44 on Wednesday 20th of March 2013 02:58:13 PM
Old 03-20-2013
I'm not sure why you have wild cards in the path. I would expect:
Code:
 find /my_rep/ -name "rk*myguidelines*.pdf" -print

---------- Post updated at 01:58 PM ---------- Previous update was at 01:52 PM ----------

Here is a "brute force" solution (often the best way), to avoid the complexities of prune option:
Code:
$ find /my_rep/ -name "rk*myguidelines*.pdf" -print > all.txt
$ grep -v "mice..._PO" all.txt > po_excluded.txt

If the find takes a few seconds, this will work. Of course, if the find is taking a while, this may not be good enough.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using find command only in current directory

I am trying to use the find command to find files in the current directory that meet a certain date criteria. find . -type -f -mtime +2 However, the above also checks the directories below. I tried -prune, but that seems to ignore this directory completely. I read about using -path w/... (5 Replies)
Discussion started by: jliebling
5 Replies

2. UNIX for Dummies Questions & Answers

how to find a file named vijay in a directory using find command

I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem. so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies

3. Shell Programming and Scripting

Find command, -name by directory and subdirectory?

Hi All, I'm trying to use the find command to return matches for a directory and file. For example, given the following directories: /one/two/three/file1.txt /one/three/two/file1.txt /one/four/two/three/file1.txt I'm expecting the following to be returned: ... (16 Replies)
Discussion started by: makodarear
16 Replies

4. Shell Programming and Scripting

Find: ignore directory completely

Hello, I know find can be prevented from recursing into directories with something like the following... find . -name .svn -prune -a type d But how can I completely prevent directories of a certain name (.svn) from being displayed at all, the top level and the children? I really... (2 Replies)
Discussion started by: nwb123
2 Replies

5. Shell Programming and Scripting

Wget - how to ignore files in immediate directory?

i am trying to recursively save a remote FTP server but exclude the files immediately under a directory directory1 wget -r -N ftp://user:pass@hostname/directory1 I want to keep these which may have more files under them directory1/dir1/file.jpg directory1/dir2/file.jpg... (16 Replies)
Discussion started by: vanessafan99
16 Replies

6. Shell Programming and Scripting

Find Command Include Sub Directory

This script writes the output files to FILES but I don't want to exclude all directories from ABC_CHQ and LYS_ADV, I want to include one sub directory name process which is under ABC_CHQ and LYS_ADV in the search. Right now its excluding everything from prune directories such as ABC_CHQ, LYS_ADV... (10 Replies)
Discussion started by: John William
10 Replies

7. Shell Programming and Scripting

Find out directory where command is located

so i have a script that i do not want copies of that script to be roaming around. i want that script to be in only one location on the filesystem, and whoever wants to use it should just link to it. any idea on how to exit from a script if it is detected that the running version is a copy and... (5 Replies)
Discussion started by: SkySmart
5 Replies

8. Shell Programming and Scripting

How-To Exclude Directory in find command

How can i tweak the below find command to exclude directory/s -> "/tmp/logs" find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have. bash-3.2$ uname -a SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Discussion started by: mohtashims
7 Replies

9. UNIX for Beginners Questions & Answers

Find command with Ignore Access issues

Hi, I am using following command to find a specific file. find . -name "find*.txt" -type f -print I am issuing that command at root directory since I don't know in which sub folder that file is getting created from some other process. As I am not having access to all directories, my... (3 Replies)
Discussion started by: RameshCh
3 Replies

10. UNIX for Advanced & Expert Users

AIX find ignore directory

I am using aix. I would like to ignore the /u directory. I tried this but it is not working. find / -type f -type d \( -path /u \) -prune -o -name '*rpm*' 2>/dev/null /u/appx/ls.rpm /u/arch/vim.rpm (4 Replies)
Discussion started by: cokedude
4 Replies
HTML::FormFu::Element::Repeatable(3pm)			User Contributed Perl Documentation		    HTML::FormFu::Element::Repeatable(3pm)

NAME
HTML::FormFu::Element::Repeatable - repeatable block element SYNOPSIS
--- elements: - type: Repeatable name: my_rep elements: - name: foo - name: bar Calling "$element->repeat(2)" would result in the following markup: <div> <input name="my_rep.foo_1" type="text" /> <input name="my_rep.bar_1" type="text" /> </div> <div> <input name="my_rep.foo_2" type="text" /> <input name="my_rep.bar_2" type="text" /> </div> Example of constraints: ---- elements: - type: Repeatable name: my_rep elements: - name: id - name: foo constraints: - type: Required when: field: 'my_rep.id' # use full nested-name - name: bar constraints: - type: Equal others: 'my_rep.foo' # use full nested-name DESCRIPTION
Provides a way to extend a form at run-time, by copying and repeating its child elements. The elements intended for copying must be added before "repeat" is called. Although the Repeatable element inherits from Block, it doesn't generate a block tag around all the repeated elements - instead it places each repeat of the elements in a new Block element, which inherits the Repeatable's display settings, such as "attributes" and "tag". For all constraints attached to fields within a Repeatable block which use either others or when containing names of fields within the same Repeatable block, when repeat is called, those names will automatically be updated to the new nested-name for each field (taking into account increment_field_names). METHODS
repeat Arguments: [$count] Return Value: $arrayref_of_new_child_blocks This method creates $count number of copies of the child elements. If no argument $count is provided, it defaults to 1. Note that "$form->process" will call "repeat" automatically to ensure the initial child elements are correctly set up - unless you call "repeat" manually first, in which case the child elements you created will be left untouched (otherwise process would overwrite your changes). Any subsequent call to "repeat" will delete the previously copied elements before creating new copies - this means you cannot make repeated calls to "repeat" within a loop to create more copies. Each copy of the elements returned are contained in a new Block element. For example, calling "$element->repeat(2)" on a Repeatable element containing 2 Text fields would return 2 Block elements, each containing a copy of the 2 Text fields. counter_name Arguments: $name If true, the "query" in HTML::FormFu will be searched during "process" in HTML::FormFu for a parameter with the given name. The value for that parameter will be passed to "repeat", to automatically create the new copies. If "increment_field_names" is true (the default), this is essential: if the elements corresponding to the new fieldnames (foo_1, bar_2, etc.) are not present on the form during "process" in HTML::FormFu, no Processors (Constraints, etc.) will be run on the fields, and their values will not be returned by "params" in HTML::FormFu or "param" in HTML::FormFu. increment_field_names Arguments: $bool Default Value: 1 If true, then all fields will have "_n" appended to their name, where "n" is the "repeatable_count" value. repeatable_count This is set on each new Block element returned by "repeat", starting at number 1. Because this is an 'inherited accessor' available on all elements, it can be used to determine whether any element is a child of a Repeatable element. Only available after repeat has been called. nested_name If the "nested_name" attribute is set, the naming scheme of the Repeatable element's children is switched to add the counter to the repeatable blocks themselves. --- elements: - type: Repeatable nested_name: my_rep elements: - name: foo - name: bar Calling "$element->repeat(2)" would result in the following markup: <div> <input name="my_rep_1.foo" type="text" /> <input name="my_rep_1.bar" type="text" /> </div> <div> <input name="my_rep_2.foo" type="text" /> <input name="my_rep_2.bar" type="text" /> </div> Because this is an 'inherited accessor' available on all elements, it can be used to determine whether any element is a child of a Repeatable element. attributes attrs Any attributes set will be passed to every repeated Block of elements. --- elements: - type: Repeatable name: my_rep attributes: class: rep elements: - name: foo Calling "$element->repeat(2)" would result in the following markup: <div class="rep"> <input name="my_rep.foo_1" type="text" /> </div> <div class="rep"> <input name="my_rep.foo_2" type="text" /> </div> See "attributes" in HTML::FormFu for details. tag The "tag" value will be passed to every repeated Block of elements. --- elements: - type: Repeatable name: my_rep tag: span elements: - name: foo Calling "$element->repeat(2)" would result in the following markup: <span> <input name="my_rep.foo_1" type="text" /> </span> <span> <input name="my_rep.foo_2" type="text" /> </span> See "tag" in HTML::FormFu::Element::Block for details. auto_id As well as the usual subtitutions, any instances of %r will be replaced with the value of "repeatable_count". See "auto_id" in HTML::FormFu::Element::Block for further details. --- elements: - type: Repeatable name: my_rep auto_id: "%n_%r" elements: - name: foo Calling "$element->repeat(2)" would result in the following markup: <div> <input name="my_rep.foo_1" id="foo_1" type="text" /> </div> <div> <input name="my_rep.foo_2" id="foo_2" type="text" /> </div> content Not supported for Repeatable elements - will throw a fatal error if called as a setter. CAVEATS
Unsupported Constraints Note that constraints with an others method do not work correctly within a Repeatable block. Currently, these are: AllOrNone, DependOn, Equal, MinMaxFields, reCAPTCHA. Also, the CallbackOnce constraint won't work within a Repeatable block, as it wouldn't make much sense. SEE ALSO
Is a sub-class of, and inherits methods from HTML::FormFu::Element::Block, HTML::FormFu::Element HTML::FormFu AUTHOR
Carl Franks, "cfranks@cpan.org" LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-23 HTML::FormFu::Element::Repeatable(3pm)
All times are GMT -4. The time now is 11:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy