<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Infinite-Loop on despatches</title><link>https://icle.es/tags/infinite-loop/</link><description>Recent content in Infinite-Loop on despatches</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 20 Jun 2025 09:25:00 +0100</lastBuildDate><atom:link href="https://icle.es/tags/infinite-loop/index.xml" rel="self" type="application/rss+xml"/><item><title>Looping from the bash commandline [1113]</title><link>https://icle.es/2011/12/20/looping-from-the-bask-commandline-1113/</link><pubDate>Tue, 20 Dec 2011 13:32:08 +0000</pubDate><guid>https://icle.es/2011/12/20/looping-from-the-bask-commandline-1113/</guid><description>&lt;p>I figured this out the other day from idle curiosity. There is occassionally the
need to have a never ending loop to be executed directly from the bash
commandline instead of writing a script.&lt;/p>
&lt;p>I used this to run sl (yes sl, not ls - try it - I love it) repeatedly.&lt;/p>
```
 $ while true; do ; done
```
&lt;p>for example&lt;/p>
```
 $ while true; do sl; done
```
&lt;p>Bear in mind that this loop is infinite and there is no way to cancel out of it
except to kill of the terminal.&lt;/p></description><content:encoded><![CDATA[<p>I figured this out the other day from idle curiosity. There is occassionally the
need to have a never ending loop to be executed directly from the bash
commandline instead of writing a script.</p>
<p>I used this to run sl (yes sl, not ls - try it - I love it) repeatedly.</p>
```
    $ while true; do ; done
```
<p>for example</p>
```
    $ while true; do sl; done
```
<p>Bear in mind that this loop is infinite and there is no way to cancel out of it
except to kill of the terminal.</p>
]]></content:encoded></item></channel></rss>