[GRASS-user] Renaming many files with one command

Vincent Bain bain at toraval.fr
Sat Mar 18 11:15:38 PDT 2017


Le samedi 18 mars 2017 à 10:45 -0700, Rich Shepard a écrit :

>    Here's the verbatim command:
> 
> for i in `g.list type=raster pattern=open_h_*`; do g.rename rast=$i,`echo 
> $i | sed /open_h_/blocked_h_/g`; done
> 
Lastly, I would suggest you to try the same command with no space after
the semi-colon.

Vincent.



More information about the grass-user mailing list