update select_coremail.sh ls replace echo