Hi,
as oorexx is not part of any enterprise repo (see
https://pkgs.org/search/?q=oorexx ) and also Rexx is not spread very much nowadays, I rebuilt it a litte to a one liner without usage of Rexx.
This line to sort by number of log entries (which is more meaningful I guess):
wc -l `find /var/www/vhosts/system/ -name access_*log -o -name access_*log.processed` | sort -nr | head -n 50
Or this line to sort by size like the original script above:
wc -c `find /var/www/vhosts/system/ -name access_*log -o -name access_*log.processed` | sort -nr | head -n 50
For distributions where wc does not repeat the filename, you could also do something like this:
find /var/www/vhosts/system/ -name access_*log -o -name access_*log.processed | xargs -i sh -c 'lines=$(wc -l {}); printf "$lines {}\n"'