Execute a variable (Bash)
Versie door Jeroen Strompf (overleg | bijdragen) op 8 sep 2022 om 06:51
In Bash, you can store commands in variables and then execute them. Appearantly, the prober way of doing so, is through a function [1]. However, you can also do it like $(...)
. Example:
params=( wp help post meta patch update ) ("${params[@]}")