#!/usr/bin/env bash awk '/TAG/ {tag++; sub("TAG", tag);} { print };'