Quick & Exemplo sujo (remova comentários embutidos, ajuste números):
# select filesystem
find / -xdev -type f -print0 | \
xargs -0r -I{} \
# execute xfs_bmap on every file (and prefix output with path for later processing)
sh -c "xfs_bmap -v {} | awk '{gsub(/\.\./,\" \"); print \"{}: \" \# select filesystem
find / -xdev -type f -print0 | \
xargs -0r -I{} \
# execute xfs_bmap on every file (and prefix output with path for later processing)
sh -c "xfs_bmap -v {} | awk '{gsub(/\.\./,\" \"); print \"{}: \" \%pre%}'" | \
# remove some cruft
awk -F: '$4 != ""{print $1 " " $4}' | \
# print line if last block < 1TB/512B/block and size (in 512B blocks) > 100.
awk '$3 < 1024*1024*1024*1024/512 && $7 > 100{print}'
}'" | \
# remove some cruft
awk -F: '$4 != ""{print $1 " " $4}' | \
# print line if last block < 1TB/512B/block and size (in 512B blocks) > 100.
awk '$3 < 1024*1024*1024*1024/512 && $7 > 100{print}'