Skip to content

Commit bc8fd6b

Browse files
committed
differences for PR #365
1 parent 82c6cee commit bc8fd6b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

04-redirection.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ directory:
5050
$ cd ~/shell_data/untrimmed_fastq
5151
```
5252

53+
Let's look for lines that contain `ACGT`.
54+
55+
```bash
56+
$ grep ACGT SRR098026.fastq
57+
```
58+
59+
To get only the number of lines with `ACGT`, we can use the `-c` flag.
60+
This is useful if you are unsure about the number of lines that will be found.
61+
62+
```bash
63+
$ grep -c ACGT SRR098026.fastq
64+
```
65+
5366
Suppose we want to see how many reads in our file have really bad segments containing 10 consecutive unknown nucleotides (Ns).
5467

5568
::::::::::::::::::::::::::::::::::::::::: callout

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"episodes/01-introduction.md" "c0f3f85bf71bfaf19c2b3507d0207378" "site/built/01-introduction.md" "2023-08-15"
77
"episodes/02-the-filesystem.md" "70b53ce6f53a88f931e492d876c60fa1" "site/built/02-the-filesystem.md" "2023-05-08"
88
"episodes/03-working-with-files.md" "6989deaa6d2a3b387212bff8b5d104f0" "site/built/03-working-with-files.md" "2023-05-08"
9-
"episodes/04-redirection.md" "3f71f2fad3303b1be957191c95bae2f7" "site/built/04-redirection.md" "2024-03-14"
9+
"episodes/04-redirection.md" "7af92ffeb1bfdc69057917967d8a51ad" "site/built/04-redirection.md" "2025-05-23"
1010
"episodes/05-writing-scripts.md" "648b54fd474490d69a6177a239be29d3" "site/built/05-writing-scripts.md" "2024-04-17"
1111
"episodes/06-organization.md" "6a657fb25cd386f2088145a440f2acc3" "site/built/06-organization.md" "2023-05-08"
1212
"instructors/Extra_lesson.md" "e60e20421674d8dc399eefce404e27f9" "site/built/Extra_lesson.md" "2023-05-08"

0 commit comments

Comments
 (0)