> here is an extract from a script I use to build src.rpms from an upload
> automatically;
>
>
> if [ -n "`ls incoming/`" ]; then
>  for srcrpm in incoming/*.src.rpm; do
>    if [ -f $srcrpm -a -z "`lsof $srcrpm 2>/dev/null`" ]; then
>      echo -n "$srcrpm "
>      ...
>    fi
>  done
> fi

Yes, thats exactly what I ment, and it works already.

Sometimes my filenames are in caps, is there a way of selecting both 
*.crw and *.CRW in my case in the loop the same time and running a 
different loop for all other file extentions (so I can move illegal 
files to a directory)?

--
Ariën Huisken


_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to