If you are just working with one directory, then you can use the ignore parm on ls.
ls -I "*.zip"
That is a capital i (eye).
On Mon, 2021-02-01 at 10:16 -0800, James H. H. Lampert wrote:
On 2/1/21 10:02 AM, Chris Pando wrote:
find . -type f | egrep -v zip$
from the shell will give you every file that doesn't end with zip.
find . -type d
Interesting. I've used the Linux "find" (in fact, I use it like crazy in
our AWS EC2 instances), and I've used the MacOS/BSD "find" (which is
slightly, but maddeningly, different from the Linux version), but I
never knew that QShell had a "find."
And I see that the "-name" parameter also works (which also bears on the
problem).
And it seems much simpler (albeit perhaps less flexible) than Larry's
SQL solution (which is one I hadn't in my wildest dreams imagined).
The issue here is that we have a directory that contains too many
entries for WRKLNK to display without some serious subsetting, let alone
that it's too many entries for one human being to deal with in a
reasonable amount of time (e.g., complete the analysis sometime before
heat-death of the universe).
Just out of morbid curiosity, are there other solutions (that wouldn't
involve spending all day researching API calls and writing a program to
use them)?
Thanks.
--
JHHL
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.