S1E1.avi
S1E2.avi
S1E3.avi
S1E4.avi
zmv 'S([0-9])E([0-9]).(*)' 'S${(l:2::0:)1}E${(l:2::0:)2}.$3'
They'd now be renamed as follows:S01E01.avi
S01E02.avi
S01E03.avi
S01E04.avi
Helpful bits and bytes
zmv 'S([0-9])E([0-9]).(*)' 'S${(l:2::0:)1}E${(l:2::0:)2}.$3'
They'd now be renamed as follows:
zmv 'S([0-9][0-9])E([0-9][0-9]).(*)' 'S$1E${(l:2::0:)$((($2 * 2) - 1))}-E${(l:2::0:)$(($2 * 2))}.$3'
They'd now be renamed as follows:
{
"open_files_in_new_window": false
}
If you have existing settings within the brackets, simply add that line (check your end of line commas for proper formatting!)