title: Turn strings from a filename into variables in BASH shell
body: <p>for example:</p>
  <pre><code>file-name-has-this-length.nfo
  </code></pre>
  <p>into,</p>
  <pre><code>assign var1=file
  assign var2=name
  assign var3=has
  assign var4=this
  assign var5=lenght
  assign ext=.nfo   # ext with or
                     #    without period 
  </code></pre>
  <p>taking any delimiters <code>-</code> <code>_</code> <code>.</code> out!</p>
  <p>My initial idea (but not limited to) is to create separated directories based on the name of the file. And any future scripts to use those names as a reference.</p>
  <blockquote>
  <p>EDIT: I didn't find anything about &quot;separate strings <em>from file [names]</em> to store their respective values&quot;. If you think this question should be moved to some other place just do it, but I need this problem solved.</p>
  </blockquote>
  <blockquote>
  <p>This is not a duplicated!</p>
  </blockquote>