Skip to content
Snippets Groups Projects
Commit 81f20633 authored by jacques.dainat_ird.fr's avatar jacques.dainat_ird.fr
Browse files

Edit bash_manip-3-grep.md

parent fb9439b8
No related branches found
No related tags found
No related merge requests found
Pipeline #84564 passed
......@@ -24,7 +24,7 @@ It has a lot of options but the most common ones are:
| -v | Invert the match, showing lines that do not match the pattern. |
| -n | Prefix each line of output with the line number. |
| -c | Print only a count of matching lines per file. |
| -o | Print each match on a new line. |
| -o | Print each match on a new line. (/!\ not copatible with -c)|
## Excercice
......@@ -44,6 +44,7 @@ It has a lot of options but the most common ones are:
# -o makes grep print each match on a new line.
# wc -l counts the number of lines, which equals the total occurrences
# 871258
# /!\ not copatible with -c
```
!!! question "Select all line related of the year 2001 in `nat2021.csv` file"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment