×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Stefan

The definition of find is

The find utility recursively descends the directory tree for each file listed,

But there are a couple options I would try - have not done so myself. These are from the QShell manual.

1. Try -prune somewhere after /QIBM but not immediately after the -name. According to the manual

It causes find to not descend into the current file.

Not sure if that means what I think.

2. Use the -x option, which is described as

Prevent find from descending into directories that have a device number different than that of the
file from which the descent began.

HTH
Vern

At 11:38 AM 10/13/2005, you wrote:

Hello,

Just started to use qshell and 'find' I'm wondering if there's a way to
limit the search to just one subdirectory.
If I enter    "find /QIBM -name '*.txt'"  then I get a list of all
.txt-files in all subdirectories below /QIBM.
Anyway to prohibit that and get a list from the QIBM directory alone?

Regards,

Stefan Tageson
Informatikk Sverige AB

http://www.informatikk.se/
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.