<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Necesitaba bajar los grupos de investigación que están inscritos en Colciencias, la URL's que describen los grupos están definidas por un número al final que parece que va incrementando, el reto es que el número tiene varios ceros adelante entonces no lograba hacer un script que se trajera todas las URL, hice varios intentos parciales, Brolin encontró la manera (mientras se bañaba).<div><br></div><div>El siguiente test baja los primeros mil grupos de investigación usando tres<span style="font-size: 12pt;"> contadores, uno se encarga de los miles, otro de los decimos, otro de las unidades.</span></div><div>Agregando más contadores se pueden traer cien mil, un millón; e<span style="font-size: 12pt;">l programador fue bastante cauteloso (o iluso) de dejar espacio como para 99 trillones (en numeración de escala corta) de grupos de </span>investigación<span style="font-size: 12pt;"> en Colombia.  </span></div><div><br></div><div><br><div><br></div><div><ol class="bash" style="color: rgb(172, 172, 172); margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 55px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 24px; background: rgb(247, 247, 247);"><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span class="co0" style="color: rgb(102, 102, 102); font-style: italic;">#!/bin/bash</span></div></li><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">for</span> a <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">in</span> <span class="br0" style="color: rgb(122, 8, 116); font-weight: bold;">{</span><span class="nu0" style="color: rgb(0, 0, 0);">0</span>..<span class="nu0" style="color: rgb(0, 0, 0);">9</span><span class="br0" style="color: rgb(122, 8, 116); font-weight: bold;">}</span></div></li><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">do</span></div></li><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">  <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">for</span> b <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">in</span> <span class="br0" style="color: rgb(122, 8, 116); font-weight: bold;">{</span><span class="nu0" style="color: rgb(0, 0, 0);">0</span>..<span class="nu0" style="color: rgb(0, 0, 0);">9</span><span class="br0" style="color: rgb(122, 8, 116); font-weight: bold;">}</span></div></li><li class="li2" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de2" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">  <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">do</span></div></li><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">    <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">for</span> c <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">in</span> <span class="br0" style="color: rgb(122, 8, 116); font-weight: bold;">{</span><span class="nu0" style="color: rgb(0, 0, 0);">0</span>..<span class="nu0" style="color: rgb(0, 0, 0);">9</span><span class="br0" style="color: rgb(122, 8, 116); font-weight: bold;">}</span></div></li><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">    <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">do</span></div></li><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">      <span class="kw2" style="color: rgb(194, 12, 185); font-weight: bold;">wget</span> http:<span class="sy0" style="color: rgb(0, 0, 0); font-weight: bold;">//</span>190.242.114.26:<span class="nu0" style="color: rgb(0, 0, 0);">8080</span><span class="sy0" style="color: rgb(0, 0, 0); font-weight: bold;">/</span>gruplac<span class="sy0" style="color: rgb(0, 0, 0); font-weight: bold;">/</span>jsp<span class="sy0" style="color: rgb(0, 0, 0); font-weight: bold;">/</span>visualiza<span class="sy0" style="color: rgb(0, 0, 0); font-weight: bold;">/</span>visualizagr.jsp?<span class="re2" style="color: rgb(0, 120, 0);">nro</span>=00000000000<span class="re1" style="color: rgb(0, 120, 0);">$a</span><span class="re1" style="color: rgb(0, 120, 0);">$b</span><span class="re1" style="color: rgb(0, 120, 0);">$c</span></div></li><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">    <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">done</span></div></li><li class="li2" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de2" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">  <span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">done</span></div></li><li class="li1" style="-webkit-user-select: none; margin: 0px 0px 0px -6px; background: rgb(255, 255, 255);"><div class="de1" style="-webkit-user-select: text; padding: 0px 8px; vertical-align: top; color: rgb(51, 51, 51); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221); margin: 0px 0px 0px -7px; position: relative; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span class="kw1" style="color: rgb(0, 0, 0); font-weight: bold;">done</span></div></li></ol><div><font face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace, serif"><span style="font-size: 12px; line-height: 24px;"><b><br></b></span></font></div></div><div><a href="http://pastebin.com/U7fKFhr3" target="_blank">http://pastebin.com/U7fKFhr3</a><br><br>Luego de bajarlos a una carpeta se pueden buscar palabras claves con </div></div><div><br></div><div>$ grep "*palabra*"</div><div><br></div><div><br></div><div>saludos, </div><div><br></div><div>fede.</div><div><br></div><div><br></div>                                    </div></body>
</html>