Skip to content

Commit

Permalink
Copilot example
Browse files Browse the repository at this point in the history
  • Loading branch information
pmitev committed Apr 2, 2024
1 parent c5b715d commit f110374
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/1.Simple_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ This mimics the use of **grep** or **sed**, so why would one possibly need awk?
`awk` starts to shine when the thing you want to do is more
complex then detecting lines with a text.

**Now, suppose we want to list all the coins that were minted before 1980**. We invoke Awk as follows:
**Now, suppose we want to list all the coins that were minted before 1980**.
See Copilot's [solution](https://sl.bing.net/i54K54hjvz2){:target="_blank"}.

We invoke Awk as follows:

``` awk hl_lines="1"
$ awk '$3 < 1980 {print $3, " ",$5,$6,$7,$8}' coins.txt
Expand Down

0 comments on commit f110374

Please sign in to comment.