|
find . -name "*apt*" -exec ls -lad {} \;
You can replace the . with / but that will tell it to start at the top of the root directory and will take "some minutes" as it will search QSYS.LIB as well.
- Larry "DrFranken" Bolhuis
www.frankeni.com
www.iDevCloud.com
www.iInTheCloud.com
On 11/10/2014 4:01 PM, Jon Paris wrote:
I’m trying to locate a directory in the IFS with a specific name (or a specific set of characters in the name).--
The find command seemed to be what I I was looking for but it is not working for me. According to some Unix sites the option I need to make it case insensitive is iname like so:
find / -type d -iname "apt" -ls
But it is rejected in PASE (and QShell) as an invalid option.
Can anyone tell me what alternatives I can use? I only want directories - not files.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
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 mailing list archive is Copyright 1997-2024 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.