Skip to content

Instantly share code, notes, and snippets.

@andreagalle
Created June 14, 2020 23:53
Show Gist options
  • Save andreagalle/c17661c25a0b4d0754047deac50b4adb to your computer and use it in GitHub Desktop.
Save andreagalle/c17661c25a0b4d0754047deac50b4adb to your computer and use it in GitHub Desktop.
check du before bap on GitHub printing it in MB
#find . -name "*.mp4" -print0 | du -sb --files0-from=- | awk '{ total += $1} END { print total/1024/1024/1024 }'
find data/vtk/ \( -name "b*_mean.vtk" -o -name "b*_pdf.vtk" \) -print0 | du -sb --files0-from=- | awk '{ total += $1} END { print total/1024/1024 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment