Trying to do nested case statement with great difficulties
Hi all,
So I am trying build a quick bash script that will stop an application on 1 level of the case statement but inside it can bring down certain components of it separately but I am really fighting with it. The commands I want on the cmd line are the following: Quote:
Code:
ACTION="$1" Thanks for any help you can provide. |
One of those can't see the forest for the trees.
Code:
case ${ACTION} in |
you can also remove the static variables and put them directly in the case statement.
Code:
case "$1" in |
Usually I do not further indent the parts that belong to the case-esac.
Also I put symmetric ( ) that is allowed in all Posix shells, avoids a problem with $( ) in bash-3 and has advantages in text editors. Code:
case $ACTION in |
All times are GMT -5. The time now is 09:49 PM. |