I want to convert all the .img in a folder and subfolfers to GeoTIFFs.
I do this regularly with gdal_translate for a single file:
gdal_translate -of GTiff input.img output.tif
I'm trying to find out how to run this on the Mac terminal for all the files in a folder/subfolders.
(I have found options for Windows and Linux but not Mac e.g.: GDAL_translate: converting ESRI GRID to Geotiff in batch)
find . -name '*.img' -exec zsh -c 'gdal_translate $0 $0:r.tif' {} \;