Oh that's just beautiful. thank you, that did the trick! superb. 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> <<a href="mailto:krippi@gmail.com">krippi@gmail.com</a>> 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>> If i do something like this in the grass terminal:<br>> g.version > version<br>><br>> i get the grass version in a text file. However, I would like to<br>> capture the output from r.lake
into a text file and grab the lake<br>> geometry parameters. Is there a reason this would not put the<br>> terminal output into a file? I get an empty output file, and the<br>> module output still goes to the terminal.
<br>><br>> r.lake dem=surface wl=37 lake=lake37 seed=seedMap > lakeFile<br>><br>> as icing on the cake, it would be nice to only grab the lines with the<br>> word "Lake" with grep.<br>> r.lake
dem=surface wl=37 lake=lake37 seed=seedMap | grep Lake ><br>> lake37File<br>><br>> 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's stuff to stderr rather
<br>than to stdout. With "> file" 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 "2> file", if<br>
you want both stdout and stderr in the file (and nothing on your<br>console), use "&> file".<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> 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>