/fill ~10 ~10 ~10 ~-10 ~-10 ~-10 minecraft:grass_block replace minecraft:netherrack code example
Example: command for replace the blocks
/fill <from> <to> <block> replace <newTileName>
/fill <from> <to> <block> replace <newTileName>