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

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

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

asp.net mvc - breakpoint on javascript in CSHTML? -