I have multiple shapefiles. When it becomes one layer (one shapefile) the volume of shapefile gets over the limit of its capacity (I believe 4GB? is the limit of *.shp can have)
Therefore, I need to save them into FGDB using ogr2ogr
this is the code I came out with so far.
for %f in (*disp_line.shp) do (if not exist test.gdb (ogr2ogr -progress --config shape_encoding "UTF-8" -f "filegdb" test.gdb %f -lco encoding="UTF-8") Else (ogr2ogr --config shape_encoding "UTF-8" -progress -f "filegdb" -update -append test.gdb %f -nln test_layer -lco encoding="UTF-8"))
when I see the result.. I get two layers. 
t_sc1disp_line feture class has 20 rows and test_line has 286 rows it is supposed to be 306 rows (20+286)..
What it means is that I have to merge the layers once again using QGIS or ArcGIS GUI tools.
Could you fix my weird OGR2OGR command?
-nln test_lineto the first command of the loop as well. Now you create first layer with the default name and only after that append the rest of the layers into "test_line". Did you really use-nln test_layerand gottest_lineas a result?