Download How do I write a 'for' loop in Bash? - Stack Overflow book pdf free download link or read online here in PDF. Read online How do I write a 'for' loop in Bash? - Stack Overflow book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
I commonly like to use a slight variant on the standard for loop. I often use this to run a command on a series of remote hosts. I take advantage of Bash's brace expansion to create for loops that allow me to create non-numerical for loops. Example: I want to run the uptime command on frontend hosts 1-5 and backend hosts 1-3: % for host in {frontend{1..5},backend{1..3}}.mycompany.com do ssh ...
Read : How do I write a 'for' loop in Bash? - Stack Overflow pdf book online Select one of servers for direct link: |
---|