5

Unable to loop through cURL command

view full story
linux-howto

http://unix.stackexchange.com – I am able to execute individual cURL commands using, curl -u user:password -v -XPOST -H 'Content-type: text/xml' -d '<featureType><name>quadrella_indica</name></featureType>' http://localhost:8080/geoserver/rest/workspaces/opengeo/datastores/speci... But I need to loop through the entire list of shp file and so, for f in *.shp do a=${f,,}; curl -u user:password -v -XPOST -H 'Content-type: text/xml' -d '<featureType><name>${a%.*}</name></featureType>' http://localhost:8080/geoserver/rest/workspaces/opengeo/datastores/s (HowTos)