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
Post a Comment