Oh that&#39;s just beautiful.&nbsp; thank you, that did the trick!&nbsp;&nbsp; superb.&nbsp; I hate to say how much time I spent on this, I should have asked the list right off the bat.<br><br>much thanks.<br>Mark<br><br><div><span class="gmail_quote">
On 8/8/07, <b class="gmail_sendername">Jannis Achstetter</b> &lt;<a href="mailto:krippi@gmail.com">krippi@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
M S schrieb:<br>&gt; If i do something like this in the grass terminal:<br>&gt; g.version &gt; version<br>&gt;<br>&gt; i get the grass version in a text file.&nbsp;&nbsp;However, I would like to<br>&gt; capture the output from r.lake
 into a text file and grab the lake<br>&gt; geometry parameters.&nbsp;&nbsp;Is there a reason this would not put the<br>&gt; terminal output into a file?&nbsp;&nbsp;I get an empty output file, and the<br>&gt; module output still goes to the terminal.
<br>&gt;<br>&gt; r.lake dem=surface wl=37 lake=lake37 seed=seedMap &gt; lakeFile<br>&gt;<br>&gt; as icing on the cake, it would be nice to only grab the lines with the<br>&gt; word &quot;Lake&quot; with grep.<br>&gt; r.lake
 dem=surface wl=37 lake=lake37 seed=seedMap | grep Lake &gt;<br>&gt; lake37File<br>&gt;<br>&gt; Something simple perhaps I am overlooking?<br><br>I think, this has nothing to do with overclocking ;)<br>It will most likely be that the module puts it&#39;s stuff to stderr rather
<br>than to stdout. With &quot;&gt; file&quot; you redirect stdout to a file but stderr<br>will still be printed to your terminal.<br>I you want stderr in a file and stdout on the console, use &quot;2&gt; file&quot;, if<br>
you want both stdout and stderr in the file (and nothing on your<br>console), use &quot;&amp;&gt; file&quot;.<br><br>More about this topic can be found at:<br><a href="http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html">http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
</a><br><br>Regards,<br>&nbsp;&nbsp;&nbsp;&nbsp;Jannis Achstetter<br><br>_______________________________________________<br>grassuser mailing list<br><a href="mailto:grassuser@grass.itc.it">grassuser@grass.itc.it</a><br><a href="http://grass.itc.it/mailman/listinfo/grassuser">
http://grass.itc.it/mailman/listinfo/grassuser</a><br></blockquote></div><br>