You're replying to a comment by redondos.

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.

#!/bin/sh

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

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.

Cheers,
redondos

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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