O'Reilly logo

Learning AWK Programming by Shiwang Kalkhanda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling the execution

To execute the program further, we have to step through the lines. For controlling execution, we have different commands. We will discuss some essential and basic ones in this section:

  • next [count]: This is used to continue execution to the next source line, stepping over function calls. The count argument controls how many times it repeats this action.
  • return [value]: This cancels the execution of the current function call (frame). If any current function contains any inner frames, they are discarded as well. If the value (string or number) is specified, it is used as a function return value.
  • finish: Execute until the selected stack frame returns and print the returned value.
  • ContinueResume the program execution ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required