1v="a\bc"
2echo ${v/\\b/_\\_\z_}
3