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

Removing the breakpoint

The clear and  delete command are used to delete the breakpoints. The clear command accepts the following arguments to delete the breakpoint:

  • clear function_name: Deletes the breakpoint set at the entry of the function
  • clear line-number (n): Deletes the breakpoint set at the line number n in the current source file
  • clear filename: Deletes the breakpoint set at the line number n in the specified source filename 

Now, we remove the breakpoint using the clear command as follows:

gawk> clear find_addDeleted breakpoint 1gawk> clear 12Deleted breakpoint 3gawk> 

Deleting the breakpoint using a line number is done as follows:

gawk> clear calc.awk:7Deleted breakpoint 2

The Delete command requires the breakpoint number as ...

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