Skip to content

Instantly share code, notes, and snippets.

@tYGjQCsvVI
Created December 26, 2014 21:10
Show Gist options
  • Save tYGjQCsvVI/3914c0d8f248fb8c364f to your computer and use it in GitHub Desktop.
Save tYGjQCsvVI/3914c0d8f248fb8c364f to your computer and use it in GitHub Desktop.
run 'filefrag' against all files recursively, reprint it in a sortable format and sort it.
find . -type f -exec filefrag {} \; | sed -r 's/(.*)\: ([0-9]+) extents? found/\2 - \1/g' | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment