Skip to content

Instantly share code, notes, and snippets.

@akhal3d96
Created July 30, 2017 17:36
Show Gist options
  • Save akhal3d96/8e2b1d2fcdcfee57702465d0eb9b0c33 to your computer and use it in GitHub Desktop.
Save akhal3d96/8e2b1d2fcdcfee57702465d0eb9b0c33 to your computer and use it in GitHub Desktop.
ls -a |\
grep -E "^\.(.)+~$" |\
xargs -I {} ls -l {} |\
awk {'print $5'} |\
paste -sd+ |\
bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment