... a=`big old | lump of | piped | apps` b=`big old | lump of | piped apps | doing something | different` c=`perl -e 'if ( $ENV{a} < $ENV{b} ) { print "1\n"; } else { print "0\n"; }'` ...