Skip to content

Instantly share code, notes, and snippets.

@s-zeid
Created June 16, 2013 10:58
Show Gist options
  • Select an option

  • Save s-zeid/5791704 to your computer and use it in GitHub Desktop.

Select an option

Save s-zeid/5791704 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ "$1" = "-w" -o "$1" = "--watch" ]; then
shift
watch "$@" -x "$0"
exit
fi
echo -e "Total\tNow\tDirectory"
echo -e "-----\t---\t---------"
paste \
<(du -hd1 Insync/scottywz@gmail.com --exclude=.insync | sort -k2 | cut -f1) \
<(du -hd1 "Google Drive" | sort -k2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment