From 3685f832752ce16b802ea4516b4cdd192e725fd1 Mon Sep 17 00:00:00 2001
From: "ndomassi.tando_ird.fr" <ndomassi.tando@ird.fr>
Date: Tue, 26 Nov 2024 09:20:25 +0000
Subject: [PATCH] Ajout exercice sur les wildcards

---
 .../bash-4-working_with_files_and_directories.md    | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/docs/pages/bash/bash-4-working_with_files_and_directories.md b/docs/pages/bash/bash-4-working_with_files_and_directories.md
index 9803ead..216e9ec 100644
--- a/docs/pages/bash/bash-4-working_with_files_and_directories.md
+++ b/docs/pages/bash/bash-4-working_with_files_and_directories.md
@@ -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?
+    
 
 
 
-- 
GitLab