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



By faster I mean hours (IFS) compared to minutes (Windows). Even faster downloading if you know the set and its not a large number of files.

-Matt


-----Original Message-----
From: Tyler, Matt
Sent: Friday, August 6, 2021 11:38 AM
To: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx>
Subject: RE: Is there an easy way to find a file in the IFS?

To find file names matching pattern: find . -name "*.sql"
To find file names matching pattern in name and text pattern within: find . -name "*.sql" -exec grep -l 'ABCDE' {} \; To find file names matching pattern in name and text pattern within using REGEX: find . -name "*.sql" -exec grep -l '.*[a-z]' {} \;

The link to the 7.3, docs. https://www.ibm.com/docs/en/i/7.3?topic=qshell-utilities


But honestly, if you are not going to make this part of a compiled program, just share a folder and use windows CMD or PowerShell. I did a find over a 100 files or so 1.25 gig and it was faster using Windows than QSHELL.
Findstr in CMD/Powershell
Select-String Powershell


-Matt


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of James H. H. Lampert via MIDRANGE-L
Sent: Friday, August 6, 2021 11:22 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx>
Subject: Is there an easy way to find a file in the IFS?

Is there an easy way, either from a system command line or a QShell command line, to find a STMF with a given name in the IFS (preferably in a subdirectory of the current directory)? Something analogous to WRKOBJ in the QSYS.LIB file system, or the "find" command in *nix?

--
JHHL
(And I've given up on the Twinax thing, and will pursue LAN Console when I have the time and energy to do so.)
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinfo/midrange-l__;!!O6xM9Yim9Yk!t_ii8TG3pJ0MG7F7B8tzoYg3zprowr19q1RlaG5vNt62H_gu533hx_VNPUgZa_gQkL7y$
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.com/v3/__https://archive.midrange.com/midrange-l__;!!O6xM9Yim9Yk!t_ii8TG3pJ0MG7F7B8tzoYg3zprowr19q1RlaG5vNt62H_gu533hx_VNPUgZaxlWqLnK$ .

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.com/v3/__https://amazon.midrange.com__;!!O6xM9Yim9Yk!t_ii8TG3pJ0MG7F7B8tzoYg3zprowr19q1RlaG5vNt62H_gu533hx_VNPUgZa1iYZBrj$

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.