You're viewing a comment by redondos and its responses.

February 03, 2009, 12:54

Here's a simple script that I use to copy files with a progress bar. I call it vcp, inspired by a tool with this name.


if (($#!=2)); then
	echo "usage:"
	echo -e "\t$0 SRC DST"
	exit 1
	pv "$1" > "$2/${1##*/}"

Yes, it could be improved, especially in error handling. I also posted it to the BashFAQ, where you'll find other alternatives for this task.


Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "browser_126": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.