title: printing text in a column in bash script
body: <p>I've been searching around and trying to find an answer, or even a question, similar to mine and have been unable to do so.  Perhaps someone here can help.</p>
  
  <p>I'm trying to print a help text from my bash command. I want the command / option to be in one column and the explanation in the second column where if the text wraps, it starts on the correct column number.</p>
  
  <p>I've tried <code>printf</code> and I don't quite understand the <code>column</code> commands.</p>
  
  <p>Here is what I want:</p>
  
  <pre><code>myscript.sh         Execute without arguments to get a menu
                      of options defining the environment.
  myscript.sh [url]   Add [url] to specify desired server
                      environment with which to run the script.
                      ex: http://the.server.domain.tld:port/
  </code></pre>
  
  <p>My attempt, thus far, looks like:</p>
  
  <pre><code>col1="%-15s"
  col2="%15s\n"
  printf "$col1" "myscript.sh"
  printf "$col2" "Execute without arguments to get a menu of options defining the environment."
  printf "$col1" "myscript.sh [url]"
  printf "$col2" "Add [url] to specify desired server environment with which to run the script."
  printf "$col2" "ex: http://the.server.domain.tld:port/"
  </code></pre>
  
  <p>but it ends up looking like</p>
  
  <pre><code>myscript.sh         Execute without arguments to get a menu
  of options defining the environment.
  myscript.sh [url]   Add [url] to specify desired server 
  environment with which to run the script.
  ex: http://the.server.domain.tld:port/
  </code></pre>