title: How to use a shell variable inside sed when doing "d" command?
body: <p>In my bash, I wish to delete lines from 1 to ${number}, like this:</p>
  
  <pre><code>number=10
  sed '1,${number}d' myfile
  </code></pre>
  
  <p>It failed with syntax error.
  I also tried "\${number}", '"$number"', neithers works</p>
  
  <hr>
  
  <p>I changed to double quote, it works under command line, but not inside bash script file. How to make it work?</p>