List files, filter by size, print only size+space+path, and sort by size only, descending order:

size=10485760
tar tvf some.tar.gz \
| awk -v size="$size" '$3 >= size {print $3" "$6}' \
| sort -t' ' -k1,1nr      

Leave a Reply

Your email address will not be published.