<div dir="ltr"><div dir="auto">I'm looking to see if there is a way to do a sql statement on a dataset level instead of a layer level. <br><br></div><div>Basically, I have a bash script, and wish to merge a bunch of esrifilegeodatabase.zip into a geopackage. <br><br></div><div>I can do something like this <br><br></div><div>ogr2ogr -F GPKG dest.gpkg -append -update $zip -sql "SELECT *, '$filen' as filename FROM Layer"<br><br></div><div>However I'm curious if there is a way to do this without knowing beforehand what layers are present?</div><div><br></div><div>While I can do this in python, I'm trying to do this as a bash shell script. <br></div></div>