docs(strange-files): moving the subject to the folder devops

fix readme and add more files
This commit is contained in:
miguel 2022-12-12 15:51:54 +00:00 committed by MSilva95
parent e06b028697
commit 3410c9ee5a
5 changed files with 29 additions and 6 deletions

View File

@ -0,0 +1 @@
Random text inside!

View File

@ -0,0 +1 @@
Random text inside!

View File

@ -5,4 +5,6 @@ set -euo pipefail
IFS='
'
diff student/\"\\?\$*\'First_file\'*\$?\\\" solutions/\"\\?\$*\'First_file\'*\$?\\\"
diff student/firstFile solutions/firstFile
diff student/\"medium_File\!\" solutions/\"medium_File\!\"
diff student/\"\\?\$*\'Hard_file\'*\$?\\\" solutions/\"\\?\$*\'Hard_file\'*\$?\\\"

View File

@ -27,17 +27,36 @@ Example:
If you want to create a file named `foo!\.txt` You have to escape the characters like so:
```console
User-> code foo\!\\.txt
$ touch foo\!\\.txt
```
### Instructions
Create a file `"\?$*'First_file'*$?\"` that will contain `Random text inside!` and **nothing else**.
Create a file the following files:
- `firstFile` which contains `Random text inside!` and **nothing else**
- `"medium_File!"` which contains `Random text inside!` and **nothing else**
- `"\?$*'Hard_file'*$?\"` which contains `Random text inside!` and **nothing else**.
### Usage
```console
User-> ls | cat -e
"\?$*'First_file'*$?\"$
User->
$ ls | cat -e
"?$*'First_file'*$?\"$
firstFile$
"medium_file!"$
$
```
### Hints
- `ls`. List directory contents.
- `touch` used to create, change and modify timestamps of a file.
> You have to use Man or Google to know more about commands flags, in order to solve this exercise!
> Google and Man will be your friends!
### References
- [ls](https://www.gnu.org/software/coreutils/ls).
- [touch](https://www.gnu.org/software/coreutils/touch).