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



On Tue, Sep 28, 2021 at 9:21 AM frank boke <fboxxx1958@xxxxxxxxx> wrote:

Ok, how about the qsh version of the command? I use something like to
delete from the ifs;
STRQSH CMD('FIND /ARCHIVE -type f -mtime +30 -exec rm +
{} \;')

...but how would I delete the files using qsh based on either 30 days after
create date or files that were created on 9/2/21?


You'd write a shell script, probably.

It will do date math from the current time and deletes based on comparison.

Some bash wizard can probably blurt out a one-liner that amounts to that
script.

Or you can write a Python script. If you use QSH to launch shell commands,
you could get used to Python scripting. It's easy and powerful.


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.