All Projects → learnbyexample → Learn_gnuawk

learnbyexample / Learn_gnuawk

Licence: mit
Example based guide to mastering GNU awk

Programming Languages

shell
77523 projects
awk
318 projects

Projects that are alternatives of or similar to Learn gnuawk

Learn gnugrep ripgrep
Example based guide to mastering GNU grep and ripgrep
Stars: ✭ 204 (-71.94%)
Mutual labels:  command-line, exercises, gnu, regex
Py regular expressions
Learn Python Regular Expressions step by step from beginner to advanced levels
Stars: ✭ 770 (+5.91%)
Mutual labels:  exercises, regex
Fsq
A tool for querying the file system with a SQL-like language.
Stars: ✭ 60 (-91.75%)
Mutual labels:  command-line, regex
Xioc
Extract indicators of compromise from text, including "escaped" ones.
Stars: ✭ 148 (-79.64%)
Mutual labels:  command-line, regex
Sd
Intuitive find & replace CLI (sed alternative)
Stars: ✭ 2,755 (+278.95%)
Mutual labels:  command-line, regex
Fd
A simple, fast and user-friendly alternative to 'find'
Stars: ✭ 19,851 (+2630.54%)
Mutual labels:  command-line, regex
Command Line Text Processing
⚡ From finding text to search and replace, from sorting to beautifying text and more 🎨
Stars: ✭ 9,771 (+1244.02%)
Mutual labels:  command-line, regex
learn perl oneliners
Example based guide for text processing with perl from the command line
Stars: ✭ 63 (-91.33%)
Mutual labels:  exercises, ebooks
Ruby Regexp
Learn Ruby Regexp step by step from beginner to advanced levels with plenty of examples and exercises
Stars: ✭ 79 (-89.13%)
Mutual labels:  regex, exercises
learn js regexp
Example based guide to mastering JavaScript regexp
Stars: ✭ 85 (-88.31%)
Mutual labels:  regex, exercises
Ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
Stars: ✭ 28,564 (+3829.02%)
Mutual labels:  command-line, regex
Bat
A cat(1) clone with wings.
Stars: ✭ 30,833 (+4141.13%)
Mutual labels:  command-line
Dotfiles
Dotfiles for macOS
Stars: ✭ 678 (-6.74%)
Mutual labels:  gnu
Clap
Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.
Stars: ✭ 7,174 (+886.8%)
Mutual labels:  command-line
Diskus
A minimal, fast alternative to 'du -sh'
Stars: ✭ 674 (-7.29%)
Mutual labels:  command-line
Hexyl
A command-line hex viewer
Stars: ✭ 6,349 (+773.31%)
Mutual labels:  command-line
Powershell
PowerShell for every system!
Stars: ✭ 31,244 (+4197.66%)
Mutual labels:  command-line
Swiftcli
A powerful framework for developing CLIs in Swift
Stars: ✭ 673 (-7.43%)
Mutual labels:  command-line
Linuxify
🍏🐧 Transparently transform the macOS CLI into a fresh GNU/Linux CLI experience.
Stars: ✭ 661 (-9.08%)
Mutual labels:  gnu
Pboy
a small .pdf management tool with a command-line UI
Stars: ✭ 662 (-8.94%)
Mutual labels:  command-line

GNU AWK

Example based guide to mastering GNU awk.

The book also includes exercises to test your understanding, which is presented together as a single file in this repo - Exercises.md

For solutions to the exercises, see Exercise_solutions.md.

See Version_changes.md to keep track of changes made to the book.


E-book

You can purchase the book using these links:

For a preview of the book, see sample chapters

The book can also be viewed as a single markdown file in this repo. See my blogpost on generating pdf from markdown using pandoc if you are interested in the ebook creation process.

For web version of the book, visit https://learnbyexample.github.io/learn_gnuawk/


Feedback

Please open an issue if you spot any typo/errors.

I'd also highly appreciate your feedback about the book.

Goodreads: https://www.goodreads.com/book/show/52758608-gnu-awk

Twitter: https://twitter.com/learn_byexample


Table of Contents

  1. Preface
  2. Installation and Documentation
  3. awk introduction
  4. Regular Expressions
  5. Field separators
  6. Record separators
  7. In-place file editing
  8. Using shell variables
  9. Control Structures
  10. Built-in functions
  11. Multiple file input
  12. Processing multiple records
  13. Two file processing
  14. Dealing with duplicates
  15. awk scripts
  16. Gotchas and Tips
  17. Further Reading

Acknowledgements

Special thanks to all my friends and online acquaintances for their help, support and encouragement, especially during these difficult times.


License

The book is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

The code snippets are licensed under MIT, see LICENSE file

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].