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

Saving the commands in file

We can save the commands from the current session to the specified filename, to replay them again in future using source commands:

  • save filename: It saves the current session commands in the specified filename as shown in the following example :
gawk> save debug_commands.txt

The preceding command will save the commands of current session in the  file  debug_commands.txt  for future reference or to replay them again using source   command.

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