#!/bin/sh

for F in $@ ; do
  awk '(FILENAME==ARGV[1]){ gsub("bboxmargin:=0u;", "mflabels;"); out = out $0 "\n"; } (FILENAME!=ARGV[1]){ gsub("bluepart;", out "\r\n\r\nbluepart;"); print; }' $F"lab" $F > mp2.tmp
  mv mp2.tmp $F
done

