Bash Syntax Error. Simple script
<p>I feel really guilty for asking this. I am a beginner with bash and I wanted to make a simple script.</p>

<p>I have a syntax error, simplified the script to the maximum and still get the syntax error.</p>

<p>Would you guys be kind enough to guide me?</p>

<pre><code>#!/bin/bash
while true
do
    while read IP;
    do
        if true ; 
        then
            echo "$IP";
        fi
    done &lt; /var/www/html/people.txt
    sleep 1
done
</code></pre>

<p>Gives me following error :</p>

<pre><code>line 10: syntax error near unexpected token `done'
line 10: `    done &lt; /var/www/html/people.txt
</code></pre>

<p>It seems to work on my friend's server but not mine.</p>

<p>EDIT : I simply had no idea I had to make a new line after the final done.</p>