scripting - How to debug an AWK script -


What are the tips for debugging any ANK script?

To print back values ​​of the variable by using a print statement in your code / values ​​and Print on so much. If you are using, you can use the -w dump-variable [= file] option to dump the variable in a file for debugging.

In addition, the option -W Lint [= value] may be of interest see the documentation for more. Other versions of AWK, such as pgawk provides profiling.

sed / awk book on debugging for your reference.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -