title: ls: cannot access file : No such file or directory
body: <p>In the shell script, I will have to access the binary logs stored in /usr/local/mysql/data.
  but when I do this,</p>
  
  <pre><code>STARTLOG=000002
  ENDLOG=000222
  file=`ls -d /usr/local/mysql/data/mysql-bin.{$STARTLOG..$ENDLOG}| sed 's/^.*\///'`
  echo $file
  </code></pre>
  
  <p>I get the below error :  </p>
  
  <pre><code>ls: cannot access /usr/local/mysql/data/mysql-bin.{000002..000222}: No such file or directory. 
  </code></pre>
  
  <p>But when I manually enter the numbers in the range the shell scripts runs normally without error. </p>