title: Creating indented text with bash
body: <p>I want to print a list to screen in a readable way. I use a loop to go through each element and make a new list which is formatted with commas and newlines. The problem is that in the first line of the output, I want a title. E.g., I want to print something like this:</p>
  
  <pre><code>List: red, green, blue, black, cars,
        busses, ...
  </code></pre>
  
  <p>The problem is to create the indentation in the second and following lines. I want the indentation to be of a given length. Therefore the problem is reduced to creating an empty line of a given length. That is, I want a function, <code>create_empty_line_of_length</code>, that outputs the given amount of spaces.</p>
  
  <pre><code>length=5
  echo "start:$(create_empty_line_of_length $length) hello"
  </code></pre>
  
  <p>The output should in this case be:</p>
  
  <pre><code>start:      hello
  </code></pre>
  
  <p>Does anyone know how to do this?</p>