There is a broken line
whois ya.ru |for i in 6 13 14 15 16 17; do awk 'NR==$i{print $1 "\t\t" $2}'; done; //в выводе пусто The task is to output 6 13 14 15 16 17 lines from the whois output. If you replace $ i with 6, then everything works fine:
whois ya.ru |for i in 6 13 14 15 16 17; do awk 'NR==6{print $1 "\t\t" $2}'; done; domain: YA.RU the question is actually how to transfer the values from the loop to the NR, or how to do without the loop at all