Hi Jan

for i in C:/Users/tappenbeck/Desktop/Project/*;

change to :

for l in `ls C:/Users/tappenbeck/Desktop/Project/` ;


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.


--- On Thu, 6/21/12, Jan Tappenbeck <[email protected]> wrote:

From: Jan Tappenbeck <[email protected]>
Subject: [Qgis-user] help to list files by bourne-shell
To: "qgis-mailingliste" <[email protected]>
Date: Thursday, June 21, 2012, 2:36 AM

hi !

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:

#!/bin/sh
# Einfaches Beispiel

for i in C:/Users/tappenbeck/Desktop/Project/*;
do
if [ -d "$i" ];
then
echo $i is directory;
fi;
done

but there will no files list - can anyone help me ?

reagards Jan :-)

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to