Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 83087c42ed4aed88a51d7da8f1e04c0c > files > 80

bash-3.2-33.el5.1.x86_64.rpm

# From psamuels@jake.niar.twsu.edu (Peter Samuelson)
# posted to usenet, Message-ID: <6rtp8j$2a0$1@jake.niar.twsu.edu>

repeat ()
{
	local i max;     # note that you can use \$i in the command string
	max=$1; shift;

	i=1; while ((i <= max)); do
		eval "$@"; ((i = i + 1));
	done;
}