Setup tape [ ] ++++ [ - > ++ [ - > + > ++++ [ - > + > ++ << ] << ] < ] >> [ - << + >>> ++ < ] >>> [ - << + < + < + >>>> ] <<<<< ++ [ - >> + >>> + <<<<< ] > + > +++ > +++ > Output all characters up to final newline . << . ---- . > . << . > ++ . ++ < . >>> Output last newline character and erase tape >>[ ]<.>