I'm relatively new in GRASS GIS and I want to add a column to a shapefile.
I use GRASS GIS (version 7.8.6 on Ubuntu 20.04 .4 LTS), not the GRASS extension in QGIS.
I'm using the shapefile of the biogeographical realms. In this file the realms are identified by a string in the column REALM. I would like to assign a number to the corresponding string in a new column named REALM_ID.
What I want is something like that: