We can run Unix shell (‘sh’)

Run commands from inside ‘ed’ by prefixing them
with <!> (exclamation mark, aka “bang”). For
example:

*!date
Mon Jun 26 10:08:41 PDT 2006
!
*!for s in hello world; do echo $s; done
hello
world
!
*