PARALLEL_MAX=1024 ( for A in a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9; do for B in a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9; do for C in a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9; do for D in a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9; do for TLD in com net org; do export domain="$A$B$C$D.$TLD" . parallel sh -c ' file=results/$domain host -W 20 -t SOA $domain > $file host -W 20 -t NS $domain >> $file host -W 20 $domain >> $file ' done done done done done )