Skip to content
Snippets Groups Projects
Commit 3685f832 authored by ndomassi.tando_ird.fr's avatar ndomassi.tando_ird.fr
Browse files

Ajout exercice sur les wildcards

parent 74a3fc57
No related branches found
No related tags found
No related merge requests found
Pipeline #40262 passed
......@@ -289,15 +289,20 @@ Well Bash does carry out a very powerful feature, the `filename expansion`, a pr
```
Excellent this one match all files ending in `.fastq`.
!!! question "Using `touch`, create a file called `dataC.fastq`in the `data` folder"
!!! question "Now copy all the fastq files using a single command thanks to the `*` filename expansion."
??? example "Click to show the solution"
```bash
touch /home/<user_name>/data/dataC.fastq
```
!!! question "Now copy only the fastq files ending by `A.fastq` or `B.fastq`"
??? example "Click to show the solution"
```bash
cp ../data/*.fastq .
cp ../data/*[AB].fastq .
```
Very convenient isn't it?
......
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