#!/usr/bin/env bash # We don't need to use -cmin +0 this time, because we're getting a length, which forces a stat. # We use %s to report the length of the file, and %p to report the filename. \0 of course # separates one file record from another, and the first blank separates the file length from # the filename. Blanks are still valid characters within filenames. find / -xdev -printf '%s %p\0'