No.  The command should be:
$ tr -sc 0-9\\n ' ' < hostname_list | awk '{ k = 0; for (i = 0; k < 4 && ++i file | command2 file As a consequence, it is possible that "file" does not even exist when 'command2' tries to read it. 'command2' would then end with an error.

Reply via email to