|
1 | | -# learn_gnuawk |
2 | | -Example based guide to mastering GNU awk |
| 1 | +# GNU AWK |
| 2 | + |
| 3 | +Example based guide to mastering GNU awk. |
| 4 | + |
| 5 | +<p align="center"> |
| 6 | + <img src="./images/gawk.png" width="320px" height="400px" /> |
| 7 | +</p> |
| 8 | + |
| 9 | +Exercises not yet included, but will be added soon... |
| 10 | + |
| 11 | +See [Version_changes.md](./Version_changes.md) to keep track of changes made to the book. |
| 12 | + |
| 13 | +<br> |
| 14 | + |
| 15 | +# E-book |
| 16 | + |
| 17 | +You can purchase the book using these links: |
| 18 | + |
| 19 | +* https://gumroad.com/l/gnu_awk |
| 20 | +* https://leanpub.com/gnu_awk |
| 21 | +* You can also get the book as part of **Magical one-liners** bundle from https://gumroad.com/l/oneliners or https://leanpub.com/b/oneliners |
| 22 | +* See https://learnbyexample.github.io/books/ for list of other books |
| 23 | + |
| 24 | +For a preview of the book, see [sample chapters](https://github.com/learnbyexample/learn_gnuawk/blob/master/sample_chapters/awk_sample_chapters.pdf) |
| 25 | + |
| 26 | +The book can also be [viewed as a single markdown file in this repo](./gnu_awk.md). See my blogpost on [generating pdf from markdown using pandoc](https://learnbyexample.github.io/tutorial/ebook-generation/customizing-pandoc/) if you are interested in the ebook creation process. |
| 27 | + |
| 28 | +<br> |
| 29 | + |
| 30 | +# Feedback |
| 31 | + |
| 32 | +Please open an issue if you spot any typo/errors. |
| 33 | + |
| 34 | +I'd also highly appreciate your feedback about the book. |
| 35 | + |
| 36 | +Goodreads: https://www.goodreads.com/book/show/52758608-gnu-awk |
| 37 | + |
| 38 | +Twitter: https://twitter.com/learn_byexample |
| 39 | + |
| 40 | +<br> |
| 41 | + |
| 42 | +# Table of Contents |
| 43 | + |
| 44 | +1) Preface |
| 45 | +2) Installation and Documentation |
| 46 | +3) awk introduction |
| 47 | +4) Regular Expressions |
| 48 | +5) Field separators |
| 49 | +6) Record separators |
| 50 | +7) In-place file editing |
| 51 | +8) Using shell variables |
| 52 | +9) Control Structures |
| 53 | +10) Built-in functions |
| 54 | +11) Multiple file input |
| 55 | +12) Processing multiple records |
| 56 | +13) Two file processing |
| 57 | +14) Dealing with duplicates |
| 58 | +15) awk scripts |
| 59 | +16) Gotchas and Tips |
| 60 | +17) Further Reading |
| 61 | + |
| 62 | +<br> |
| 63 | + |
| 64 | +# Acknowledgements |
| 65 | + |
| 66 | +* [GNU awk documentation](https://www.gnu.org/software/gawk/manual/) — manual and examples |
| 67 | +* [stackoverflow](https://stackoverflow.com/) and [unix.stackexchange](https://unix.stackexchange.com/) — for getting answers to pertinent questions on `bash`, `awk` and other commands |
| 68 | +* [tex.stackexchange](https://tex.stackexchange.com/) — for help on `pandoc` and `tex` related questions |
| 69 | +* Cover image: [LibreOffice Draw](https://www.libreoffice.org/discover/draw/) |
| 70 | +* [softwareengineering.stackexchange](https://softwareengineering.stackexchange.com/questions/39/whats-your-favourite-quote-about-programming) and [skolakoda](https://skolakoda.org/programming-quotes) for programming quotes |
| 71 | +* [Warning](https://commons.wikimedia.org/wiki/File:Warning_icon.svg) and [Info](https://commons.wikimedia.org/wiki/File:Info_icon_002.svg) icons by [Amada44](https://commons.wikimedia.org/wiki/User:Amada44) under public domain |
| 72 | + |
| 73 | +Special thanks to all my friends and online acquaintances for their help, support and encouragement, especially during these difficult times. |
| 74 | + |
| 75 | +<br> |
| 76 | + |
| 77 | +# License |
| 78 | + |
| 79 | +The book is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/) |
| 80 | + |
| 81 | +The code snippets are licensed under MIT, see [LICENSE](./LICENSE) file |
0 commit comments