Skip to content
Snippets Groups Projects
Commit 520b35ea authored by alexis.dereeper_ird.fr's avatar alexis.dereeper_ird.fr
Browse files

Update bash-extracting_from_files.md

parent afc47c1d
No related branches found
No related tags found
No related merge requests found
Pipeline #39665 passed
......@@ -54,15 +54,19 @@ Using commands `head` and `tail` allows to do this tasks.
grep ";2021;" nat2021.csv
```
!!! question "How many names have been provided in 2021?"
!!! question "How many names have been given in 2021?"
??? example "Click to show the solution"
```bash
grep ";2021;" nat2021.csv | wc -l
grep -c ";2021;" nat2021.csv
# result: 13501
```
!!! question "Is there more diversity in male or female names in 2021"?
## Combining commands (| && ;)
!!! question "Is there more diversity in male or female names in 2021?"
??? example "Click to show the solution"
```bash
......@@ -74,7 +78,7 @@ Using commands `head` and `tail` allows to do this tasks.
# result: 6389
```
!!! question "How many person are called PARIS in 2021"?
!!! question "How many person are called PARIS in 2021?"
??? example "Click to show the solution"
```bash
......@@ -188,9 +192,6 @@ You can redirect a result and store it in a file thanks to the `>` redirection:
## Combining commands (| && ;)
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