Replace shell commands