Is there a way to automatically have the $i variable prepended to the beginning of the command without having to specify it each time?
Here is my current script.
#!/bin/bash for i in "command -c"; do $i command1 show $i command2 show done
What I would like is something like this.
#!/bin/bash for i in "command -c"; do $i ( command1 show command2 show ) done