12

Unable to print dynamic arguments in for loop

view full story
linux-howto

http://www.unix.com – Hi All, I want to pass few dynamic arguments to shell script. The number of arguments differ each time I call the script. I want to print the arguments using the for loop as below. But not working out. Code: for (( i=1; i<=$#; i++ )) do   echo $"($i)" done Code: /bin/sh test.sh arg1 arg2 arg3 Any one please help. (HowTos)