I have a bunch of files named:
Brooklyn Nine-Nine S01 E01 [H264].mkv
Brooklyn Nine-Nine S01 E02 [H264].mkv
Brooklyn Nine-Nine S01 E03 [H264].mkv
Brooklyn Nine-Nine S01 E04 [H264].mkv
Brooklyn Nine-Nine S01 E05 [H264].mkv
Brooklyn Nine-Nine S01 E06 [H264].mkv
Brooklyn Nine-Nine S01 E07 [H264].mkv
Brooklyn Nine-Nine S01 E08 [H264].mkv
...
I want to rename them so that the space Between S01 and E08 is removed. example
Brooklyn Nine-Nine S01E08 [H264].mkv
I already found a command to remove all spaces:
IFS="\n"
for file in *.mkv;
do
mv "$file" "${file/[[:space:]]}"
done
but I only want to remove space between Sxx and Exx.