format shell commands