awk - Write two loops output in two columns in shell? -


how can write following in efficient way:

for j in {1..339};do   in {1..427};do     echo -e $j'\t'$i  >> ofile.txt   done done 

here 1 alternative without explicit loops

join -j9 -t$'\t' <(seq 339) <(seq 427) | cut -f2- > ofile.txt 

Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -