learn_gnuawk icon indicating copy to clipboard operation
learn_gnuawk copied to clipboard

Example based guide to mastering GNU awk

Results 10 learn_gnuawk issues
Sort by recently updated
recently updated
newest added

The [preface](https://learnbyexample.github.io/learn_gnuawk/preface.html) says, > As an analogy, consider learning to drive a bike or a car. But, we don't _drive_ bikes; we _ride_ them. Later, under Feedback and Errata it...

``` " awk 'length($1) < 6' table.txt echo 'αλεπού' | awk '{print length()}' echo 'αλεπού' | awk -b '{print length()}' echo 'αλεπού' | LC_ALL=C awk '{print length()}'" ``` one doesn't...

Hi Sundeep- thanks, this is a great resource! In the section about Field Separators-FPAT there is a warning note saying that FPAT will not work for csv files. That's true,...

First of all, thanks for the great tutorial and the CLI app for exercising! Sorry, I accidentally pressed Submit before finishing my issue. Here's the rest. In question 21/88, i.e....

The exercises reads: > The input file `nums.txt` contains a single column of numbers. Change positive numbers to negative and vice versa. Solution should use the `sub` function and shouldn't...

https://github.com/learnbyexample/learn_gnuawk/blob/96b8442fc372303f1be838bf01a2210ded152b58/gnu_awk.md?plain=1#L3436 > The second argument will be converted **TO** `1` if a number less than one is specified.

## Problem text This is Q: 78/88 of awkexercises: > For the input file broken.txt, print all lines between the markers top and bottom. Assume that the input file cannot...

It's also numerated as exercise 2) in https://learnbyexample.github.io/learn_gnuawk/multiple-file-input.html > For the input files `sample.txt`, `secrets.txt`, `addr.txt` and `table.txt`, display only the names of files that contain `at` or `fun` in...

This sentence: https://github.com/learnbyexample/learn_gnuawk/blob/96b8442fc372303f1be838bf01a2210ded152b58/gnu_awk.md?plain=1#L4058 should read: ``` This chapter introduced **a** few more special blocks and variables **that are** handy for processing multiple file inputs. These will show up in examples...

Hi, in the regular expressions chapter, I found an inaccuracy related to escaping characters in the incoming input. [Matching the metacharacters](https://learnbyexample.github.io/learn_gnuawk/regular-expressions.html#matching-the-metacharacters) ```bash $ echo '\learn\by\example' | awk '{gsub(/\\/, "/")} 1'...