#!/bin/sh

m1=tmpf/m1
m2=tmpf/m2
m3=tmpf/m3
m4=tmpf/m4
[ "$1" ] && {
 cat $m1 | sed "s/ou/$1/g" | sed "s/organization/$1/g" | sed "s/username/$1name/g" >h/h1_$1
 cat $m2 | sed "s/ou/$1/g" | sed "s/organization/$1/g" | sed "s/username/$1name/g" >h/h2_$1
 cat $m3 | sed "s/ou/$1/g" | sed "s/organization/$1/g" | sed "s/username/$1name/g">h/h3_$1
 cat $m4 | sed "s/ou/$1/g" | sed "s/organization/$1/g" | sed "s/username/$1name/g" >h/h4_$1
}
