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.
I have a bash code where i need some assistance.
bash Log2Time.sh 20190925_psort.csv
filename="${FILE%.*}"
mv Log2Timeline_Filtered.xlsx $filename_EventIDs.xlsx
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