title: SED : Remove last four characters from filename
body: <p>I had list of files in the folder named test_images as below</p>
  
  <pre><code>006103insettedryshampoo-blossom7096.jpg
  008299bathmassagesponges-3packa1a4.jpg
  008507colgatetripleactiontoothpaste125d.jpg
  8729teatreeoilantisepticcream25g1005.jpg
  </code></pre>
  
  <p>i want to rename all file by removing last four characters from each of them as</p>
  
  <pre><code>006103insettedryshampoo-blossom.jpg
  008299bathmassagesponges-3pack.jpg
  008507colgatetripleactiontoothpaste.jpg
  8729teatreeoilantisepticcream25g.jpg
  </code></pre>
  
  <p>How can i do it using sed ?</p>
  
  <p>Any suggestion will be appreciated.</p>
  
  <p>Thanks in advance  :)</p>