How to use heredoc as a text editor: 
There’s a somewhat obscure feature in Linux and Unix shells that allows you to open a sort of do-while loop for the cat command. It’s called the heredoc, and it enables you to have, more or less, a text editor no matter what shell you’re using. The syntax is:
read more: Opensource.com sethkenlon
Supporting Open Source.
Have you tried: Farking?
