I'm writing a script to backup all files in the ~/Documents folder to S3.
Since the upload takes about 20 seconds, I'd like to display the current progress in the console.
Currently I print a new line every time the progress changes.
How can I replace the previous line when printing a new progress update?
I've seen some other scripts to this (eg: stash's wget), but for some reason I can't get it to work in my script.
