<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Bash-loops</id>
	<title>Bash-loops - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Bash-loops"/>
	<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Bash-loops&amp;action=history"/>
	<updated>2026-05-08T15:50:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Bash-loops&amp;diff=202&amp;oldid=prev</id>
		<title>Chubbard: Created page with &quot;=== Interesting bash loop constructs I have found === &lt;pre&gt; cat interesting_loop.sh  #!/bin/bash  _admin_ip=&quot;202.54.1.33|MUM_VPN_GATEWAY 23.1.2.3|DEL_VPN_GATEWAY 13.1.2.3|SG_V...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Bash-loops&amp;diff=202&amp;oldid=prev"/>
		<updated>2022-09-21T03:00:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Interesting bash loop constructs I have found === &amp;lt;pre&amp;gt; cat interesting_loop.sh  #!/bin/bash  _admin_ip=&amp;quot;202.54.1.33|MUM_VPN_GATEWAY 23.1.2.3|DEL_VPN_GATEWAY 13.1.2.3|SG_V...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Interesting bash loop constructs I have found ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat interesting_loop.sh &lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
_admin_ip=&amp;quot;202.54.1.33|MUM_VPN_GATEWAY 23.1.2.3|DEL_VPN_GATEWAY 13.1.2.3|SG_VPN_GATEWAY&amp;quot;&lt;br /&gt;
for e in $_admin_ip&lt;br /&gt;
do&lt;br /&gt;
   echo  allow from &amp;quot;${e%%|*}&amp;quot; to any port 22 proto tcp comment &amp;quot;Open SSH port for ${e##*|}&amp;quot;&lt;br /&gt;
done&lt;br /&gt;
chubbard@chubbard-laptop:~$ ./interesting_loop.sh &lt;br /&gt;
allow from 202.54.1.33 to any port 22 proto tcp comment Open SSH port for MUM_VPN_GATEWAY&lt;br /&gt;
allow from 23.1.2.3 to any port 22 proto tcp comment Open SSH port for DEL_VPN_GATEWAY&lt;br /&gt;
allow from 13.1.2.3 to any port 22 proto tcp comment Open SSH port for SG_VPN_GATEWAY&lt;br /&gt;
chubbard@chubbard-laptop:~$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:bash]]&lt;/div&gt;</summary>
		<author><name>Chubbard</name></author>
	</entry>
</feed>