$# --The number of arguments supplied to a script
Example :- ./test.sh 1 2 3 4 → $# = value will be 4
ansible-playbook main.yml -e “Var1=1 Var2= 2Var3=3 Var4=4”
How can we get a total number of arguments?
$# --The number of arguments supplied to a script
Example :- ./test.sh 1 2 3 4 → $# = value will be 4
ansible-playbook main.yml -e “Var1=1 Var2= 2Var3=3 Var4=4”
How can we get a total number of arguments?