Print numbers 1 to 100 in 10 columns
<p>I want to print the numbers 1 to 100 numbers, but in columns: first 1 to 10 in first column, 11 to 20 in 2nd column, then 21 to 30 in 3rd column, ..., 91 to 100 in 10th column.</p>

<p>How can I achieve this in Bash? I have tried:</p>

<pre><code>#!/bin/bash
for ((i=1; i &lt;= 100 ; i++)) do
    echo " $i"
done
</code></pre>