Use SQL aggregate functions to calculate minimum, maximum and average size of files in a directory

fselect

fselect "{{MIN(size), MAX(size), AVG(size), SUM(size), COUNT(*)}} from {{path/to/directory}}"

click the source code to copy