In my script I have while loop with case statement its working fine, I have added two more arguments as input to script. So i have addedd 2 cases in the existing case statement.
-a and -d are newly added blocks.
Am passing the arguments for the same as below.
test.sh -s NY -t N -f DLY -a 20151022 -d 4
But the same is not getting evaluated. -s, -t and -f are evaluating fine.
Do i need to do something for adding new casess in existing case statement, For any case if it would be issue with spaces how to resolve it. Spent my full day time but no clue.
Appriciate your responses, Thanks in advance. Below is the code snippet.
---------- Post updated at 08:03 AM ---------- Previous update was at 08:00 AM ----------
earlier one is some syntax erroros, updated script
Hi,
I have while loop with case statement its working fine, I have added two more arguments as input to script. So i have added 2 cases in the existing case statement.
-a and -d are newly added blocks.
Am passing the arguments for the same as below.
test.sh -s NY -t N -f DLY -a 20151022 -d 4
But the same is not getting evaluated. -s, -t and -f are evaluating fine.
Do I need to do something for adding new cases in existing case statement, For any case if it would be issue with spaces how to resolve it. Spent my full day time but no clue.
Appreciate your responses, Thanks in advance. Below is the code snippet.