modify bash snippet