Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Please edit and clarify.i) Should rows with <N fields be left alone? ii) Why is site7.com left unchanged in your example? Fields 2-4 are blank there. Should there be at least N+1 fields? Commented Jan 3, 2017 at 10:45
  • sorry you are right Commented Jan 3, 2017 at 11:03
  • OK, and what is system("$1,cmd1 $1") supposed to be? That syntax doesn't make sense. The system() call returns the exit status of the command. Is that what you want? What is the $1,cmd1 $1 supposed to be? Commented Jan 3, 2017 at 11:11
  • $1 is first column. ok i modify. actually cmd1 is a sample shell command or calling function. for example <echo test> Commented Jan 3, 2017 at 11:39
  • Yes, but the system() function of awk returns the exit status and not the command's output. Is that what you want? Or do you want the output of the command? Does it need to be a system call? Can't you just do it in awk directly? Commented Jan 3, 2017 at 12:09