<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Sending multiple lines of input to a program | UNIX shell scripting | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Thu, 15 Dec 2005 08:13:42 -0000</lastBuildDate><item><title>Re: Sending multiple lines of input to a program | UNIX shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/204/sending-multiple-lines-of-input-to-a-program/#comment-2767126</link><description>I can never remember the term for this technique, but Rex, one of the many who have contributed recipes to Tech-Recipes has a recipe describing this and I look to it to remember that they are called &lt;a href="http://www.tech-recipes.com/unix_shell_scripting_tips204.html" rel="nofollow"&gt;here documents&lt;/a&gt;.  I think it is one of the more obscure but useful tips in shell scripting.  &lt;br&gt;&lt;br&gt;Anyone who knows about here docs definitely has a strong background in UNIX.  If you are willing to share any more tips, you can &lt;a href="http://www.tech-recipes.com/modules.php?name=Recipes&amp;amp;file=RxEditor&amp;amp;op=addrecipe" rel="nofollow"&gt;add them as an official recipe&lt;/a&gt; in the category hierarchy that you feel is appropriate.  If they are new recipes, we'll validate them and you'll be &lt;a href="http://www.tech-recipes.com/blog231.php" rel="nofollow"&gt;compensated&lt;/a&gt;...  A hint to any recipe authors and future Tech Chefs out there, it's a good idea to do a little &lt;a href="http://www.tech-recipes.com/modules.php?name=Recipes&amp;amp;op=search" rel="nofollow"&gt;search&lt;/a&gt; first to see if your idea for a recipe is in our cookbook of over a thousand recipes.&lt;br&gt;&lt;br&gt;Quinn</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">qmchenry</dc:creator><pubDate>Thu, 15 Dec 2005 08:13:42 -0000</pubDate></item><item><title>Re: Sending multiple lines of input to a program | UNIX shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/204/sending-multiple-lines-of-input-to-a-program/#comment-2767125</link><description>It's possible even to create a multi-line file, using this method:&lt;br&gt;&lt;br&gt;cat&amp;lt;&amp;lt;EOF &amp;gt; /tmp/MY_NEW_FILE&lt;br&gt;line 1&lt;br&gt;one more line&lt;br&gt;...&lt;br&gt;last line&lt;br&gt;EOF</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 14 Dec 2005 04:09:41 -0000</pubDate></item></channel></rss>