title: Removing changing pattern from filenames in directory in Linux
body: <p>I have a directory containing files following the following naming convention:</p>
  <pre><code>Label_0000_AA.gz
  Label_0001_BB.gz
  Label_0002_CC.gz
  ...
  </code></pre>
  <p>All I want to do is to rename these files so that the _#### number pattern is removed, resulting in:</p>
  <pre><code>Label_AA.gz
  Label_BB.gz
  Label_CC.gz
  ...
  </code></pre>
  <p>but only up to a certain number. E.g.: I may have 10000 files but might only want to remove the pattern in the first 3000. Would this be possible using something like bash?</p>