My script is called by a program that generates argument randomly such as
input=12 output=14 destinationroute=10.0.0.0
and then calls my script with the generated arguments:
./getroute.sh input=12 output=14 destinationroute=10.0.0.0
Inside the script is like:
 #!/bin/bash
 input=$1
 output=$2
 destinationroute=$3
 ...
The program always calls arguments in random order (ex. input=12 output=14 or output=14 input=12), and I can't change the program.
Is there any way to recognize the correct parameters and put them in their proper place.
 
     
     
    