From 8230ba16ee44517d3b394fb6432aa8a21f9be879 Mon Sep 17 00:00:00 2001 From: miguel Date: Tue, 13 Dec 2022 13:04:07 +0000 Subject: [PATCH] docs(strange-files): fixing readme --- subjects/devops/strange-files/README.md | 40 ++++++++++++------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/subjects/devops/strange-files/README.md b/subjects/devops/strange-files/README.md index d178738be..667519c71 100644 --- a/subjects/devops/strange-files/README.md +++ b/subjects/devops/strange-files/README.md @@ -1,5 +1,25 @@ ## Strange Files +### Instructions + +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 +$ ls | cat -e +"?$*'First_file'*$?\"$ +firstFile$ +"medium_file!"$ +$ +``` + +### Hints + We come across files and folders name very regularly. In most of the cases file/folder names are related to the content of the file/folder and starts with numbers or letters. Alpha-Numeric file name are pretty common and very widely used, but this is not the case when we have to deal with file/folder name that has special characters in them. Example of most common file names are: @@ -30,26 +50,6 @@ If you want to create a file named `foo!\.txt` You have to escape the characters $ touch foo\!\\.txt ``` -### Instructions - -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 -$ ls | cat -e -"?$*'First_file'*$?\"$ -firstFile$ -"medium_file!"$ -$ -``` - -### Hints - - `ls`. List directory contents. - `touch` used to create, change and modify timestamps of a file.