As I continually point out, an sh compiler will help you very little. You need to decompose and recompose your program to minimize execs and redundant data passes and then recast it in a more suitable language, like [gn]awk (maybe), perl, or C (as a last resort). Merely compiling the conditionals buys you nearly nothing. --tom