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 9803eadf501720acb1078df239f1f3cd3243bff4..216e9ec4c9788df67ecf75c513ea6036c779f83c 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? +