I am attempting to run a GRASS command from the terminal and eventually a bash script, in which it links rasters in a folder to the Mapset previously defined. I was able to successfully create the Mapset running a single line of code, however I receive the following error when I link the rasters:
ERROR: Flag -e required also flag -c
It is to my understanding that I can run this code without having to create a new Mapset for each raster (reason for omitting -c flag), and can also run this without initializing GRASS 7.0 text (reason for including the -e flag).
My line of code that prompted the error is as follows:
grass70 /path/to/grassdata/urma_latest/PERMANENT/ -e --exec r.external input=urma_2018050900.tif output=urma1
My goal is to run this for a series of rasters housed in the folder