awk -F^ '
function nume(a0) { split(a0,a9,","); return a9[1]"."a9[2] }
FILENAME==ARGV[1] { inv[$2]=$1 ; desc[$2]=$7" "$8" "$9" "$45" - "$10; prc[$2]=nume($18); next }
FILENAME==ARGV[2] { dis[$1]=$0;dsc[$1]=$6" "$7" "$8" "$44" - "$9; pr[$1]=nume($15); next }
FILENAME==ARGV[3] { bode="01" }
FILENAME==ARGV[4] { bode="02" }
FILENAME==ARGV[5] { bode="03" }
FILENAME==ARGV[6] { bode="04" }
FILENAME==ARGV[7] { bode="05" }
$NF!="" {
 file="IVV/"bode
 printf "%.6s^",inv[$NF] >file
 printf "%-60.60s^",desc[$NF] >file
 printf "%-6d^",$4 >file
 printf "%-10.2f^",prc[$NF] >file
 printf "%-10.2f^",nume($9) >file
 print "" >file
}
END {
}

' INVE Inventory* Show* Ware* Clearance* ValFurn2* Damaged* 
exit
Manufacturer^Category^Description^Quantity in Stock^On Hold^Special Order^On Order^Cost^Actual Cost^Item Number
Ashley Softgoods^Upholstery^<none>^2^0^0^-28^0,00^0,00^1
United Furniture Industries^Bedroom^B153-92 Nightstand Symphony Cherry^1^0^0^0^58,00^58,00^110
United Furniture Industries^Bedroom^B235-31 Dresser Cherry 64w/16d/34h^1^0^0^0^100,99^100,99^111
Ashley Softgoods^Accessories^Q045007k Linens King Mahogany^1^0^0^0^194,99^194,99^177
Ashley Softgoods^Accessories^Q060007K Linens IVORY King^1^0^0^0^134,99^134,99^180
Ashley Softgoods^Accessories^Q022455 Linens QUEEN IVORY 2/CN^1^0^0^0^259,98^259,98^186
Ashley Softgoods^Accessories^Q016305 Linens QUEEN PLUM 2/CN^1^0^0^0^259,98^259,98^187
Ashley Softgoods^Accessories^Q013405 Linens QUEEN ORANGE 2/CN^2^0^0^0^259,98^259,98^188
