- # find sparse files based on block size vs file size
- ksh93 -c 'integer x ; find . -type f | while read fn ; do (( x=$(stat --printf "(%b * %B) - %s\n" "$fn") )) ; (( x >= 0 )) && continue ; printf "filename=%q, size/block diff=%d\n" "$fn" x ; done'
find sparse files based on block size vs file size
Posted by Anonymous on Sat 11th Jan 2025 14:02
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.