Format find and awk output locating large files

Use find to locate files over a criteria size and format output with awk. Changing value of NF variable you change fields separator
 

find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'


Posted

in

by

Tags: