<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:16px"><div id="yiv0213393984"><div id="yui_3_16_0_ym19_1_1485432149552_15596"><div style="color:#000;background-color:#fff;font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1485432149552_15595"><div id="yiv0213393984yui_3_16_0_ym19_1_1485432149552_7586"><span></span></div><div id="yiv0213393984yui_3_16_0_ym19_1_1485432149552_7605"><div>Prezado Yuri,</div><div><br></div><div>Para extrair alguma informações dos arquivos de saída do DSSAT utilizei alguns comandos do shell, talvez te ajude (substituir o TESTE.txt pelo aquivo DSSAT):</div><div><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485432149552_16154"># Grep<br id="yui_3_16_0_ym19_1_1485432149552_16042"><br id="yui_3_16_0_ym19_1_1485432149552_16043">## filtra as linhas <br id="yui_3_16_0_ym19_1_1485432149552_16044"><br id="yui_3_16_0_ym19_1_1485432149552_16045"> grep "^ 2016" < teste.txt<br id="yui_3_16_0_ym19_1_1485432149552_16046"><br id="yui_3_16_0_ym19_1_1485432149552_16047">O resultado são todas as linhas que começam com um espaço em branco e depois têm os caracteres 2016<br id="yui_3_16_0_ym19_1_1485432149552_16048"><br id="yui_3_16_0_ym19_1_1485432149552_16049">## linhas com qualquer characgter que tenha JAN<br id="yui_3_16_0_ym19_1_1485432149552_16050"><br id="yui_3_16_0_ym19_1_1485432149552_16051"> grep "^\(.*\)JAN" < TESTE.txt<br id="yui_3_16_0_ym19_1_1485432149552_16052"></div><div dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485432149552_16155"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485432149552_16157">## Get text between two strings<br id="yui_3_16_0_ym19_1_1485432149552_16054"><br id="yui_3_16_0_ym19_1_1485432149552_16055"> grep -Po 'XX \K.*(?= YY)' < TESTE.txt<br id="yui_3_16_0_ym19_1_1485432149552_16056"><br></div><div id="yui_3_16_0_ym19_1_1485432149552_16159"><br></div><div id="yui_3_16_0_ym19_1_1485432149552_16196"><br></div><div> </div></div><div class="yiv0213393984signature" id="yiv0213393984yui_3_16_0_ym19_1_1485432149552_10019"><div id="yiv0213393984yui_3_16_0_ym19_1_1485432149552_10018"><font style="font-family:tahoma, 'new york', times, serif;" id="yui_3_16_0_ym19_1_1485432149552_15594" size="1"><span class="yiv0213393984yui_3_7_2_18_1354538511367_65" style="font-family:verdana, helvetica, sans-serif;font-weight:bold;" id="yui_3_16_0_ym19_1_1485432149552_15603">Rafael Tieppo</span><br style="font-family:verdana, helvetica, sans-serif;" clear="none"><span class="yiv0213393984yui_3_7_2_18_1354538511367_67" style="font-family:verdana, helvetica, sans-serif;" id="yui_3_16_0_ym19_1_1485432149552_15593">State University of Mato Grosso - </span></font><font style="font-family:tahoma, 'new york', times, serif;" id="yui_3_16_0_ym19_1_1485432149552_15612" size="1"><span class="yiv0213393984yui_3_7_2_18_1354538511367_67" style="font-family:verdana, helvetica, sans-serif;"><font style="font-family:tahoma, 'new york', times, serif;" size="1"><span class="yiv0213393984yui_3_7_2_18_1354538511367_67" style="font-family:verdana, helvetica, sans-serif;">Department of </span></font>Agricultural Engineering <br clear="none"></span><span class="yiv0213393984yui_3_7_2_18_1354538511367_73" style="font-family:verdana, helvetica, sans-serif;"><span style="font-weight:bold;">site</span>:</span><span class="yiv0213393984yui_3_7_2_18_1354538511367_75" style="font-family:verdana, helvetica, sans-serif;" id="yui_3_16_0_ym19_1_1485432149552_15611"> <a rel="nofollow" shape="rect" target="_blank" href="https://rafatieppo.github.io/" id="yui_3_16_0_ym19_1_1485432149552_15610">https://rafatieppo.github.io</a> </span><span class="yiv0213393984yui_3_7_2_18_1354538511367_76" style="font-family:verdana, helvetica, sans-serif;"><b>blog</b>: </span></font><a rel="nofollow" shape="rect" target="_blank" href="https://fuidebicicleta.wordpress.com/" style="font-family:verdana, helvetica, sans-serif;font-size:x-small;">https://fuidebicicleta.wordpress.com</a></div><div id="yui_3_16_0_ym19_1_1485432149552_15624"><span style="font-family:verdana, helvetica, sans-serif;font-size:x-small;" id="yui_3_16_0_ym19_1_1485432149552_15623">"Evite o desperdício: antes de imprimir pense na sua responsabilidade com o ambiente". <br clear="none"></span></div></div> <div class="yiv0213393984qtdSeparateBR" id="yiv0213393984yui_3_16_0_ym19_1_1485432149552_10036"><br clear="none"><br clear="none"></div><div class="yiv0213393984yqt6581005694" id="yiv0213393984yqt00323"></div></div></div></div><div class=".yiv0213393984yahoo_quoted" id="yui_3_16_0_ym19_1_1485432149552_15639"> <div style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1485432149552_15638"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1485432149552_15637"> <div dir="ltr" id="yui_3_16_0_ym19_1_1485432149552_15641"><font id="yui_3_16_0_ym19_1_1485432149552_15643" size="2" face="Arial"> On Tuesday, January 24, 2017 11:00 AM, "r-br-request@listas.c3sl.ufpr.br" <r-br-request@listas.c3sl.ufpr.br> wrote:<br clear="none"></font></div> Fim da Digest R-br, volume 73, assunto 17<br clear="none"><div class="yiv0213393984y_msg_container" id="yui_3_16_0_ym19_1_1485432149552_15662">*****************************************<br clear="none"><br clear="none"><br clear="none"></div> </div> </div> </div></div></body></html>