rm CUS/*
awk -F"^" ' NR {
file = "CUS/H"sprintf("%.4d",NR)
if ($8!="") a=" "$8"."
else a=""
nom=$7""a" "$9$10
print "H02"nom > file
if ($12!="") a="Suite "$12
else a=""
print "H03"$11" "a > file
print "H05"$13 > file
print "H06"$14"-"$15 > file
print "H07"$56 > file
print "H08"$17 > file
close(file)
} ' CUSTO
>../data/custo/H
>../data/custo/HEAD
echo -n "    0     0">../data/custo/INFO
for i in CUS/*
do
../ihd/bin/ihmu custo ../../import/$i -N1
done
exit
Customer Number^First Name^Middle Initial^Last Name^Company^Street^Suite^City^State^Zip/Postal Code^Phone^Cell_Phone^Business_Phone
1^Garlike^^Virginia^^3893 Pecan Circlenmnnkn^^La Porte^TX^77034^(281) 941-9695^(832) 646-2300^
2^Gerald^^Flowers^^3650 Burke Road^^Pasadena^TX^77504^(281) 691-2231^^
10001^Ralph & Judy^^Carmona^^10611 Steppinstone Court^^Spring^TX^77379^(281) 924-3661^(281) 924-3668^(281) 931-6609
10002^Edith^l^Langdon^^1219 Azaua Court^^Pasadena^TX^77506^(713) 473-8431^^
10004^Ivy^^Montemouyor^^1311 Heights^^Pasadena^TX^77503^(713) 472-7538^^
10005^Frances^^Mereno^^1804 Sullivan^^Pasadena^TX^77506^^(832) 830-4327^
10006^Maria^^Salazar^^^^Pasadena^TX^77506^(713) 447-3746^^
10007^Maria^^Salazar^^2003 N. Palm Court^^Pasadena^TX^77502^(832) 725-4516^^
10008^Frances^^Mereno^^1804 Sullivan Ave^^Pasadena^TX^77506^(832) 830-4327^^
