Skip to content

Commit

Permalink
Update AWK_module.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eberdan authored Mar 28, 2024
1 parent 24a9274 commit fa37c42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Finding_and_summarizing_colossal_files/lessons/AWK_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,16 @@ It works! We can see that "moose,bison" is the most commonly observed group of a

2. Our code also counts the number of times our header text (Yosemite or Glacier) is repeated. How can you modify the code so that this is ignored?

3. <details>
<details>
<summary><i>Click here for the answer</i></summary>

awk 'NR>1 { counter[$2] += 1 } END { for (animalgroup in counter){ print animalgroup, counter[animalgroup] } }' animal_observations_edited.txt

awk 'NR>1 { counter[$5] += 1 } END { for (animalgroup in counter){ print animalgroup, counter[animalgroup] } }' animal_observations_edited.txt
</details>


****

### Bioinformatic Application
Expand Down

0 comments on commit fa37c42

Please sign in to comment.