Running this ed command will reverse the lines in the current buffer. This would be useful for logfiles and the like:
:g/^/m0