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

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

php - Passing multiple values in a url using checkbox -

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -