<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">1520 gis</strong> <span dir="auto"><<a href="mailto:juliermeopensourcedeveloper@gmail.com">juliermeopensourcedeveloper@gmail.com</a>></span><br>Date: Fri, Nov 27, 2020 at 3:14 PM<br>Subject: Grep gdalinfo subdataset<br>To: <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>><br></div><br><br><div dir="ltr">Hi all,<div><br></div><div>I am trying to grep the SUBDATASET_X_NAME in gdalinfo.<br>I only need the WCS:url</div><div><br></div><div>If I grep the subdataset [1], the string slice "SUBDATASET_5_NAME" comes together. I would like to know if I can get only WCS:url by using any gdalinfo options.</div><div><br></div><div>I tried running [2] , but no success. Is there any gdalinfo option which response is the same as in [1]?</div><div><br></div><div>Thank you very much for your time in advance.</div><div><br></div><div>Kind regards</div><div>Julierme</div><div><br></div><div><br></div><div>[1]</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:24px;line-height:32px;white-space:pre-wrap"><div>gdalinfo <span style="color:rgb(206,145,120)">"WCS:<a href="http://demo.geo-solutions.it/geoserver/ows?service=WCS&version=2.0.1&request=GetCapabilities" target="_blank">http://demo.geo-solutions.it/geoserver/ows?service=WCS&version=2.0.1&request=GetCapabilities</a>"</span> | grep <span style="color:rgb(206,145,120)">'nurc__Img_Sample'</span></div></div></div><div><br></div><div>[2]</div><div><br></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:24px;line-height:32px;white-space:pre-wrap"><div>gdalinfo -sd nurc__Img_Sample <span style="color:rgb(206,145,120)">"WCS:<a href="http://demo.geo-solutions.it/geoserver/ows?service=WCS&version=2.0.1&request=GetCapabilities" target="_blank">http://demo.geo-solutions.it/geoserver/ows?service=WCS&version=2.0.1&request=GetCapabilities</a>"</span> </div></div></div></div>
</div></div>