Skip to content

Commit

Permalink
add note about recap
Browse files Browse the repository at this point in the history
  • Loading branch information
tavareshugo committed Aug 29, 2024
1 parent 736abbb commit c290719
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions materials/01-basics/04-combining_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Here's the main message: **always use the `-n` option if you want things that lo

## Exercises

:::{.callout-exercise}
:::{.callout-exercise #pipes-exr}
#### Pipe comprehension
{{< level 1 >}}

Expand Down Expand Up @@ -195,7 +195,7 @@ What would be the result of the following command?
cat animals*.txt | head -n 6 | tail -n 1
```

::: {.callout-answer collapse=true}
::: {.callout-answer}

The result would be "fox".
Here is a diagram illustrating what happens in each of the three steps:
Expand All @@ -218,7 +218,7 @@ cat animals*.txt raccoon head -n 6 rabbit tail -n 1
:::


:::{.callout-exercise}
:::{.callout-exercise #sort-exr}
#### Sort & count
{{< level 2 >}}

Expand All @@ -245,7 +245,7 @@ Let's try and solve that problem, and also ask the question of how frequent each
You may also want to use the `-n` option to sort _numerically_.
</details>

::: {.callout-answer collapse=true}
::: {.callout-answer}

**Task 1**

Expand Down Expand Up @@ -349,7 +349,7 @@ From the help page it says:
:::


:::{.callout-exercise}
:::{.callout-exercise #zcat-exr}
#### `zcat` and `grep`
{{< level 2 >}}

Expand All @@ -367,7 +367,7 @@ The 'z' at the beggining indicates it will work on _zipped_ files.
Combine `zcat` with `grep` to extract the sequence names only.
How many proteins does SARS-CoV-2 have?

::: {.callout-answer collapse=true}
::: {.callout-answer}

**Task 1**

Expand Down Expand Up @@ -417,7 +417,7 @@ zcat proteins.fa.gz | grep ">" | wc -l
:::


:::{.callout-exercise}
:::{.callout-exercise #count-exr}
#### Counting values in columns
{{< level 3 >}}

Expand All @@ -438,7 +438,7 @@ Using a combination of the commands we've seen so far:
- Remember that the `cut` program uses tab as its default delimiter.
:::

::: {.callout-answer collapse=true}
::: {.callout-answer}

**Task 1**

Expand Down
8 changes: 5 additions & 3 deletions trainers/trainer_nodes.md → trainers/trainer_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ Below, we give details to help you prepare each section of the materials.
[Combining commands](https://cambiotraining.github.io/unix-shell/materials/01-basics/04-combining_commands.html)

- This naturally flows from the previous section and is also live-coded (often the same trainer does both).
- Do the exercises after the live coding.
- Summary (slides):
- After finishing the above, go through the slides in the section entitled "Basics of Unix - Summary"
- Participants can do the exercises after the live coding.
- Summary (slides): after finishing the above, go through the slides in the section entitled "Basics of Unix - Summary".
- Courses split across two half-days (usually online):
- The summary slides above can instead be presented at the beginning of day 2 as a recap
- You can also go through the solution of the zcat+grep exercise in the morning of day 2 also as a recap

### Shell scripts

Expand Down

0 comments on commit c290719

Please sign in to comment.