What does "${var:x:y}" mean in Bash?
<p>Inside the function of a shell script I see something like this</p>
<pre><code>func() {
  local x
  x=${1:3:1}
  ...
}
</code></pre>
<p>What does <code>x=${1:3:1}</code> mean? I know that <code>$1</code>, <code>$2</code> and <code>$3</code> are arguments of the function. So does the above statement mean that <code>x = $1:$2:$3</code>?</p>