#!/bin/bash

  A="top-margin = 12 \mm"
  B="top-margin = 18 \mm"
  X="bottom-margin = 2 \mm"
  Y="bottom-margin = 4 \mm"

  for i in N*/gtr*/b*
  do

    echo "Updating $i"
    sed -i 's/top-margin = 18/top-margin = 12/g' $i 
    sed -i 's/bottom-margin = 12/bottom-margin = 10/g' $i

  done
