1

Dinamics param for script

view story
linux-howto

http://www.unix.com – Hi everyone, I need a way to take the value of a parameter with a for lood. For example i execute the script with this parameter Code: ./Script PARAM1 PARAM2 PARAM3 PRAM4 Code: for i in <LIST OF PARAMETERS> do     PARAMETERS[i]=$<NUMBER OF PARAMETER> done How can i express <LIST OF PARAMETERS> and <NUMVER OF PARAMETERS>? Thanks! Sorry for my english. NOTE: the numbers of parameters is not the same allways. (HowTos)