Skip to content

Instantly share code, notes, and snippets.

@totomz
Created January 22, 2016 10:18
Show Gist options
  • Save totomz/ea7944ae9dd45930f10a to your computer and use it in GitHub Desktop.
Save totomz/ea7944ae9dd45930f10a to your computer and use it in GitHub Desktop.
Monitor downloaded files
while true; do echo $(date +%H:%M:%S) $(awk "BEGIN { printf \"%6.2f%\n\", $(ls | grep -v .gstmp | wc -l)/135530 *100 }") $(df -h --output=avail /dev/sdd2 | awk END{print}) free; sleep 3; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment