Remove the same part of many filenames via command line

I have multiple files with same suffix and need to remove the suffix.

for file in Star*; do mv "$file" "${file/10bit.AAC.1./}" done
Code language: JavaScript (javascript)

Leave a Reply