Skip to content

Commit

Permalink
add inline Instructor Note warning about different flag behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyhodges authored Nov 7, 2024
1 parent cedd8b1 commit 5ef86c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions episodes/05-counting-mining.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,16 @@ $ grep -iw hero *a.tsv > results/hero-i.tsv

::::::::::::::::::::::::::::::::::::::::::::::::::

:::::::::::::::::::::::::::::::::::::::::::::::::: instructor

### Watch out for different behaviour of the -E option across systems

Learners may encounter some inconsistent behaviour between operating systems when solving the challenge below.
`grep -E` on macOS acts like `grep -P` on other platforms.
On Windows and Linux, `grep -E` is halfway between `grep -P` and `grep`: it only does what `grep` can do, but uses Perl-compatible syntax to do it.

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::: challenge

## Searching with regular expressions
Expand Down

0 comments on commit 5ef86c3

Please sign in to comment.