I am using ogr2ogr to convert my huge geodatabase file (
mygdb.gdb) into multiple shapefiles using one of the attributes (
myattr). I have 100s of unique values for this attributes, so I am gonna do this on a loop. Based on the answer here, I created a list of these values in a text file (
myattr.txt). I am going to do the following
ogr2ogr -f "ESRI Shapefile" -sql "SELECT * FROM my_layer WHERE "myattr" IN ($mystring)" myoutput mygdb.gdb
My question is how to dynamically name the output shape files i.e. what to write for
myoutput? The linked answer suggets
/output. I was wondering how does the dynamic naming of the output shapefiles works without any dynamic variable in this argument?