Answer the question
In order to leave comments, you need to log in
How to correctly execute a command in one line with several arguments, where one of them is a list?
There is a script/program that needs to be executed with 1 command several times. Don't constantly retype the argument. One of the arguments is essentially a list.
You have to do this 10 times... (and then more...)
appman -f /etc/AlterPro/apps_sys.conf standby unregister --sys-id 3
appman -f /etc/AlterPro/apps_map.conf standby unregister --sys-id 3
appman -f /etc/AlterPro/apps_ctrl.conf standby unregister --sys-id 3
. . .
appman -f /etc/AlterPro/apps_port.conf standby unregister --sys-id 3
exec appman -f /etc/AlterPro/apps_{sys, map, ctrl, port}.conf standby unregister --sys-id 3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question