Skip to content
Snippets Groups Projects
Commit 506a7ef8 authored by Gilquin's avatar Gilquin
Browse files

fix: correct grouping exercise

The solution of the last exercise of section "Grouping and back references" was wrong and difficult to decrypt.
The question formulation has also been improved.
parent bdfa3271
No related branches found
No related tags found
1 merge request!2fix: correct some errors
......@@ -169,12 +169,12 @@ Try the following replacement regexp
gzip -dc hg38.ncbiRefSeq.gtf.gz | head | sed -E 's|(transcript_).{2}|\1number|g'
```
Try to write a `sed` command to replace *ncbiRefSeq* with *transcript_id* .
Try to write a `sed` command to swap *ncbiRefSeq* with *transcript_id*.
<details><summary>Solution</summary>
<p>
```sh
gzip -dc hg38.ncbiRefSeq.gtf.gz | head | sed -E 's|ncbiRefSeq(.*)(transcript_id "([A-Z_0-9.]*))|\3\1\2|g'
gzip -dc hg38.ncbiRefSeq.gtf.gz | head | sed -E 's|(ncbiRefSeq)(.*)(transcript_id)(.*)|\3\2\1\4|g'
```
</p>
</details>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment