Hi, guys. Let's make a fresh try in v2.0 (revised). Can you help me exclude "find' out of this string saving same amount stack&heap wasting in gentle manner. Same simple task: 'tree-dirs with multiple contetnt, hidden files, (hidden|empty|combined) folders and Gb+ data. Goal - find (latest|oldest) by modification folder with, e.g. *.mp4"'
gawk 'BEGIN {PROCINFO["sorted_in"] = "
@val_num_asc"}; {if ($1>5000) {DIRS[$3] = $2}}; END {for (dir in DIRS) {print dir; exit}}' <<< "$(find $BASE_DIR/* -type d -exec du -bsS --time --time-style=+%s --exclude='*.mp3' --exclude='*.g*' --exclude='*.j*' --exclude='*.t*' --exclude='*.d*' --exclude='*.x*' --exclude='.*' {} \;)"