title: Rename a filename in bash
body: <p>Rename a filetype in bash. So when the script runs, it intakes a csv file and outputs a excel file. I want the output excel file with the same name as input file without csv extension.</p>
  
  <p>I have a bash code where i need some assistance. </p>
  
  <pre><code>bash Log2Time.sh 20190925_psort.csv
  filename="${FILE%.*}"
  mv Log2Timeline_Filtered.xlsx $filename_EventIDs.xlsx
  </code></pre>
  
  <p>The input for the script is 20190925_psort.csv
  I want the final output file i.e Log2Timeline_Filtered.xlsx to be renamed as 20190925_psort_EventIDs.xlsx</p>