[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

display variable multiple times



how can i force a variable to be displayed multiple times in bash?

example:

back ()
{
	UP="../"
	cd <what goes here? :->
}

I'd like to have the value of $1 be an interger that will display $UP x
number of times dependent upon the value of $1.

so 

	back 2

would issue the command 

	cd ../../

-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.