LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-30-2002, 11:22 AM   #1
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Rep: Reputation: 30
call recursive find except on ./foo/


Hi folks!


how do you call recursive find on ./ but dont want to recurse on ./foo/?


Regards,
 
Old 07-30-2002, 01:08 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
from find man page
Quote:
-path pattern
File name matches shell pattern pattern. The
metacharacters do not treat `/' or `.' specially;
so, for example,
find . -path './sr*sc'
will print an entry for a directory called
'./src/misc' (if one exists). To ignore a whole
directory tree, use -prune rather than checking
every file in the tree. For example, to skip the
directory `src/emacs' and all files and directories
under it, and print the names of the other files
found, do something like this:
find . -path './src/emacs' -prune -o
-print
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is foo bar satimis Programming 25 04-26-2019 08:21 PM
For foo in bar; do angel115 Programming 1 11-16-2005 04:52 PM
What do you call your remote control? I call mine... RHLinuxGUY General 19 10-18-2004 06:23 AM
grep -r foo /* alles32 Linux - General 2 09-19-2004 06:20 PM
Foo? MasterC Linux - General 2 05-27-2003 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration