#tutorial #processing #forloops #example #ForLoop
String replacement in BASH scripting
During creation of new posts for a Hugo deployed website, I found myself using the same directories again and again. Since I invariably ended up
https://technologytales.com/2023/04/28/string-replacement-in-bash-scripting/
#Linux #Mac #Scripting #Software #UNIX #Web #WebDevelopment #WebTechnologies #WebTools #BASH #Computerlanguages #Fieldsofmathematics #Forloop #Hugo #Programminglanguages #Scripting #Scriptinglanguages #Shortcode #Unixshells #variable
#variable #unixshells #shortcode #scriptinglanguages #programminglanguages #hugo #ForLoop #fieldsofmathematics #computerlanguages #Bash #webtools #webtechnologies #webdevelopment #Web #Unix #Software #scripting #mac #Linux
#tutorial #processing #forloops #example #ForLoop #pretty
#tutorial #processing #forloops #example #ForLoop
#tutorial #processing #forloops #example #ForLoop
#tutorial #processing #forloops #example #ForLoop #pretty
I've solved my problem! 🥳
{% set tghosts = salt['vmware_esxi.list_hosts']('MyDatacenter','MyCluster') %}
{% for myhost in tghosts %}
list_roles_{{ myhost }}:
cmd.run:
- name: esxcli -s {{ pillar['vmware_config']['host'] }} -u {{ pillar['vmware_config']['user'] }} -p {{ pillar['vmware_config']['password'] }} -h {{ myhost }} -d {{ pillar['vmware_config']['thumbprint'] }} system permission list
{% endfor %}
Bash Scripting - For Loop Explained With Examples #BashLoops #ForLoop #BashScripting #ShellScripting #Linux
https://ostechnix.com/bash-for-loop-shell-scripting/
#Linux #shellscripting #bashscripting #ForLoop #BashLoops