<div dir="ltr"><div>Dear R-gurus,<br></div><div><br></div><div>I have a vector file which have several attributes.&nbsp;</div><div>One of the columns have values that repeat like&nbsp;</div><div>the name of city. So, I would like to do some&nbsp;</div>
<div>steps for each level of the column of interest.</div><div><br></div><div>Just supose that I have CityA, CityB, CityC</div><div><br></div><div>I would like to use this strings on a for loop.</div><div><br></div><div>Following suggestions by Hamish, I addapted the&nbsp;</div>
<div>following temptative code:</div><div><br></div><div><br></div><div>for MAP in `v.db.select map=mymap column=city` ; do</div><div>&nbsp;&nbsp;echo my steps...</div><div>done</div><div><br></div><div>But when the first entry on the looping is the name</div>
<div>of the field (City), and when the city have white</div><div>space like &quot;Los Angeles&quot;, each word are used</div><div>as different entry of MAP variable of the &quot;for&quot; looping.</div><div><br></div><div>
My questions are:</div><div>1. How can I bypass the problem of &quot;v.db.select&quot; return</div><div>the name of column as first entry</div><div>2. How can I bypass the problem of white space for</div><div>city names?</div>
<div><br></div><div>Best wishes</div><div><br></div><div>miltinho astronauta</div><div>brazil</div><div><br></div>
</div>