Build a List of Items to Loop Over¶
Build a list with comments:
1 2 3 4 5 6 7 8 9 10 11 | list="" list+=" git" # version control list+=" vim" # text editor list+=" hdparm" # hard drive tools list+=" nmap" # network debugging list+=" fail2ban" # brute-force protection for F in ${list} do echo ${F} done |
Or if you want to keep it simple:
1 2 3 4 5 6 7 8 9 10 11 12 13 | list=" git vim hdparm nmap youtube-dl fail2ban " for F in ${list} do echo ${F} done |