Call UNIX commands(sh, bash, …)

The exclamation mark (!) instructs ex to create a
shell and treat all further characters as a UNIX
command: :!command

:!date
:!ls
:sh

For exit use CTRL + D

:r !date