On Mon, 10 Nov 2025 01:51:18 +0000, Len Rugen <[email protected]> wrote:

>>On Sunday, November 9, 2025, 7:47 PM, Paul Gilmartin 
>><[email protected]> wrote:
>>I have a directory tree containing a mixture of source and
>>product files.  All the products are newer than any source.
>>    find dir itype f -mtime -xxx -exec rm {} \;

>How can you tell what is a product file?

This doesn't make any sense in UNIX nor z/OS. From the word "product", I'm 
guessing can only guess this refers to an SMP/e install. I'm guessing that 
"source" is a symlink (think pds member alias) to a real file (think member 
name).

SMP/e entity names have a max length of 8 characters but Unix file names are 
often much longer thus you have the real file name to meet the 8 character 
SMP/e limitation and SMP/e defined SYMLINKs that allow UNIX to use the long 
names.

If my assumption is right, then don't delete the files unless you want to 
corrupt SMP/e. Instead, use SMP/e ++DELETE to delete the product or specific 
files. It should automatically delete the associated SYMLINKs when the file has 
been deleted.

If my assumption is wrong, then we'll need clarification.



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to