I use the great approach to large rasters as described here
gdaltindex an_index.shp *.tif
ogr2ogr -f CSV list.csv an_index.shp -spat xmin ymin xmax ymax
gdalbuildvrt -input_file_list list.csv mosaic.vrt
r.external input=/path/to/mosaic.vrt output=mosaic
the resulting list.csv file contains correct paths, but the first line is "location,". It is skipped when vrt file is build, but can I get rid of this line while creating the list.csv?
Grass version is GRASS 7.8.7 (2022)