on macOs the -E option was taken as the argument of the -i option causing backups to be made with the addional extension -E. also the backslash of the \s needed additional escaping