<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Jan<br><br>for i in C:/Users/tappenbeck/Desktop/Project/*;<br><br>change to :<br><br>for l in `ls C:/Users/tappenbeck/Desktop/Project/` ;<br><br><br>enclosing a comand in back quotes will return the result of the command, & you want to return a list iof the contents of the folder, not the string which is the folder name.<br><br><br>--- On <b>Thu, 6/21/12, Jan Tappenbeck <i><osm@tappenbeck.net></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jan Tappenbeck <osm@tappenbeck.net><br>Subject: [Qgis-user] help to list files by bourne-shell<br>To: "qgis-mailingliste" <qgis-user@lists.osgeo.org><br>Date: Thursday, June 21, 2012, 2:36 AM<br><br><div class="plainMail">hi !<br><br>i want to create a script for use in msys - but i am not a linux-user. i try to create this
 by a template:<br><br>#!/bin/sh<br># Einfaches Beispiel<br><br>for i in C:/Users/tappenbeck/Desktop/Project/*;<br>do<br>if [ -d "$i" ];<br>then<br>echo $i is directory;<br>fi;<br>done<br><br>but there will no files list - can anyone help me ?<br><br>reagards Jan :-)<br><br>_______________________________________________<br>Qgis-user mailing list<br><a ymailto="mailto:Qgis-user@lists.osgeo.org" href="/mc/compose?to=Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div></blockquote></td></tr></table>