title: What's meaning about this in shell?
body: <p>Does someone knows the meaning of the code below?</p>
  
  <pre><code>#!/bin/sh
  files=`find -name *.conifg`
  for i in $files
  do
    name=${i#*/}
    dir=${name%/*}
  done
  </code></pre>
  
  <p>I don't understand the two lines:</p>
  
  <pre><code>name=${i#*/}
  dir=${name%/*}
  </code></pre>
  
  <p>What's the meaning of "#<em>/" and "%/</em>"? Thanks.</p>