3 ms·
Nice! 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 b
by asicsp 7y ago
Nice! 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