title: linux bash, camel case string to separate by dash
body: <p>Is there a way to convert something like this:</p>
  
  <pre><code>MyDirectoryFileLine
  </code></pre>
  
  <p>to</p>
  
  <pre><code>my-directory-file-line
  </code></pre>
  
  <p>I found some ways to convert all letters to uppercase or lowercase, but not in that way; any ideas?</p>