sh Getting started with sh Hello, world!


Example

With echo:

$ echo Hello, world!
Hello, world!

With printf:

$ printf 'Hello, world!\n'
Hello, world!

As a file:

#!/bin/sh
printf '%s\n' 'Hello, world!'