#!/bin/bash for i in {01..99}; do sed "s/sXX/s${i}/g" sXX-zone.cis.k7dxs.net.zone > "s${i}-zone.cis.k7dxs.net.zone" done