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

Running the program

The run or r command is used to start/restart the execution of the program. If the run command is used to restart the program execution, the debugger retains the current breakpoints, watchpoints, command history, and debugger options.

Now, we run the program after again putting in the earlier set three breakpoints. To run, type r or run and the program runs until it hits the first breakpoint:

gawk> runStarting program:Stopping in BEGIN …Breakpoint 1, find_add(num1, num2) at `calc.awk':22 result = num1 + num2gawk>   

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