× 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 Don,

Am 05.10.2021 um 00:55 schrieb Don Brown via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>:

I am interested in the example you provided and looking at the IBM
documentation for find I do not see the -depth option as being available.

Interesting. As said, I tested with (stock) 7.2 and it worked. There are no Opensource packages installed.

Problem is: Online help of unix commands is traditionally terse, and I'm not sure if manpages are available with a more full-fledged installation of unix-like helpers in PASE *and* you're connecting with ssh: nroff text "rendering" for manpages automatically uses a pager ("less" or "more"). This kind of interactivity isn't compatible with 5250 displays.

But in general, manpages are the authoritative source of information of local programs, on Linux and Unix. These programs and their manpages are usually bundled in install packages and thus can be reasonably trusted that program and documentation largely match.

I have a large number of empty directories and this would be very useful.

How should I be running this ?

Well, you can log in via ssh, cd to the directory you want to clean and simply copy-paste the lines as I wrote them in my initial mail.
For me this is a simple throwaway: Not worth saving. But I understand that this doesn't universally apply to everybody.

You also can save them to a *STMF, prepend so the first line is

#!/bin/sh

then do a chmod +x on it, and you have a tiny shell script which you can easily launch. The same applies: You need to cd to the directory you want to clean before and then need to run /home/user/my-super-duper-shellscript.

Alternatively you can put the *STMF to a directory being in the directory search "PATH" (environment variable). Then you don't need to run the script with giving the full path to it's location.

Ask if this is too much gobbledigook and you need more precise information. :-)

:wq! PoC


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.