× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello James,

Am 07.08.2021 um 00:06 schrieb James H. H. Lampert via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>:

I never even imagined that a *nix-style "find" would be available in QShell.

If in doubt, just try. Every new release of the OS brought additional commands into the game.

I will note that the syntax looks more like the Mac OS version than the Debian version.

I now hear for the first time that there are differences.

But I'm getting some peculiar results.

If I do
find . -name *.jar

in /QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit, then it *only* returns ./IBMmisc.jar; it doesn't look in any subdirectories.

As John pointed out: Unix shells traditionally expand wildcards *before* passing the completed list to a command. Also a reason why you need to escape the final semi colon: Otherwise it would be expanded by the shell to "now follows the next command in the same line".

So you need to think a bit ahead: Where do you need wildcards being expanded: By the shell, so a called program will get the list of files to work on? Or is the program itself (like find) meant to use the wildcards as strings by itself?

:wq! PoC


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-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.