Accept multiple lines of input in a bash script
<p>I am in the middle of writing a bash script. The pending point I am stuck with is how to accept multiple inputs from the user at a time.</p>

<p>To be specific, a user must be able to input multiple domain names when the script asks to enter the input. </p>

<p>Example, script running portion:</p>

<pre><code>Enter the domain names :
</code></pre>

<p>and user must be able to enter the domain names line by line either by entering each of them manually or he/she just have to copy domain names list from somewhere and able to paste it in the script input, like as follows:</p>

<pre><code>domain1.com
domain2.com
domain3.com
domain4.com
</code></pre>

<p>Is it possible?.</p>