9 ms·
Learn Awk by Example (2019)
- saagarjha 7y agoYour Gitbooks link seems to go to something about Go?
- japanoise 7y agoYes I'm getting that too. It leads to https://thewhitetulip.gitbooks.io/webapp-with-golang-anti-textbook/content/ https://thewhitetulip.gitbooks.io/webapp-with-golang-anti-te...
- lqet 7y agoSo is the YouTube link, the leanpub link and the code tasks link.
- deleted 7y ago[deleted]
- arendtio 7y agoThe author probably forgot to edit that file and those are default links of the template he used.
- thewhitetulip 7y agoYes, that is my Go book. I copied the template from that book thats why it happened
- currysausage 7y agoI can't reach anything under gitbooks.io at all. Some GDPR paranoia thing again? It would be lovely to get an HTTP 451 at least.
- kininge007 7y agotest
- codecowboy 7y agoI think this is deliberate subversive misdirection from the Golang mafia
- thewhitetulip 7y agoHahaha I can assure you that it is not. I have written a few books and I copied the text files from my Go book. Apologies. I didnt get to creating a gitbooks for this book. I am planning to statiscally generate a website and host it via github itself, rather than gitbooks.
- bloopernova 7y agoYou wrote a great tutorial, I'm definitely saving this and sharing it with any colleagues who need help with command line file mangling.
- thewhitetulip 7y agoThank you very much.
- csydas 7y agoAs much as I admire this, I believe that The AWK Programming Language is probably the best resource for just learning awk. https://en.wikipedia.org/wiki/The_AWK_Programming_Language https://en.wikipedia.org/wiki/The_AWK_Programming_Language I read it on a whim after hearing the accolades awk would get from people when it came to text munging, and as I have to do a lot of it at work, I figured I'm bound to come across practical situations for my own purposes once I get a few basics from the guide. And sure enough, I did. I love the original simply because it helped me understand the scope of tasks I should look at for awk; I could just think about my own difficulties with handling large amount of text data (mostly very verbose logging), and then create a workflow in awk that mimicked my actual work, but vastly expedited. The article linked is nice and cute, but it more or less is a rehash of the topics covered in The AWK Programming Language, which isn't bad (more data is good), but I feel the original handles the explanations far far better and helps you to really understand what awk is good at and when to attack with awk versus when your task is better suited for something else.
- arendtio 7y agoI can confirm this statement. The book is great and helped me understand that awk is a lot more than just a tool to select columns.
- boshomi 7y agoThe book is available at archive.org text achrive[1] [1] https://archive.org/details/awkprogrammingla00ahoa https://archive.org/details/awkprogrammingla00ahoa (borrow for 14 days)
- thewhitetulip 7y agoYes, that book is the best book there is. I myself learnt from it. But it is a little in depth. My idea of this book was to team awk quickly. This is an intro book and after 'discovering' awk from my book, users will surely read the larger book
- asicsp 7y agoI'd also suggest the manual/book for gawk[1] which introduces the language from the basics, covers newer features and also mentions which features are unique to gawk [1] https://www.gnu.org/software/gawk/manual/gawk.html https://www.gnu.org/software/gawk/manual/gawk.html
- kininge007 7y agotfckyf
- jamestomasino 7y agoI love having a variety of these types of sites available for a new language. Different learners will react well to different styles. My personal favorite is AWK in 20 Minutes: http://ferd.ca/awk-in-20-minutes.html http://ferd.ca/awk-in-20-minutes.html The AWK Programming Language book is also great. Nice work.
- thewhitetulip 7y agoThank you! Yes, everyone learns in their own way. I am happy that you found the book useful And yes. The official boom is very good and in depth
- vpip 7y agoThis has taught me something useful in a short space of time, thank you.
- thewhitetulip 7y agoYou are very welcome!
- known 7y agohttps://archive.vn/mmd80 https://archive.vn/mmd80 is also good
- asicsp 7y agoNice! A few suggestions if I may: * please consider using the same prompt for all examples, a few of them start with `code` while some others start with `awk book` and some do not have any prompt at all * split long chapters into smaller sections plus add section headings as links at the start of chapter * please please please avoid parsing ls [1] you could either reuse `sales.csv` or create another sample file instead of using `ls` as source of input... for example, your `ls -l | awk '$NF ~ /c/ {print}'` example will not work if a file is name `code xyz` (note the space) Also, I have a similar example based hundreds of gawk one-liners [2] tutorial, which I'm currently working towards publishing as a book this month with better examples, descriptions, new regex chapter, etc [1] https://unix.stackexchange.com/questions/128985/why-not-parse-ls-and-what-to-do-instead https://unix.stackexchange.com/questions/128985/why-not-pars... [2] https://github.com/learnbyexample/Command-line-text-processing/blob/master/gnu_awk.md https://github.com/learnbyexample/Command-line-text-processi...
- thewhitetulip 7y agoThank you for your suggestions. I'll keep them in mind while updating tutorial
- emehrkay 7y agoIm on the second page of this book and it is presented in a way that makes me want to use awk right now. I really like how this is written, it does a great job of presenting a base idea and building on it. @thewhitetulip did you plan out all of the example topics before writing each page in the manuscript?
- thewhitetulip 7y agoThank you very much! My idea was to get the reader started as quickly as possible. I wrote a book which I hoped existed when I was learning awk. I mostly learnt awk from the gawk manual and internet. So I wrote down a long list of awk commands while I learnt. Then I sorted them according to concept and then wrote the text surrounding it
- deleted 7y ago[deleted]
- kazinator 7y agoThe "Read Online" link mistakenly points to something about Golang, not Awk.