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

bkant Permalink
December 23, 2009, 23:50

Ooops, there went something terribly wrong with the script code. I forgot to escape the < and > characters! Now here is the complete script.

#! /bin/sh
if (($#<2)); then
	echo "usage:"
	echo -e "\t$0 SRC DST"
	exit 1
else
	for (( i=1; i < $#; i++ ))
	do
		pv "${@:${i}:1}" > "${!#}/${@:${i}:1}"
	done
fi

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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