replace bash code snippets with sh