fix(master-the-ls): fixing readme and test

This commit is contained in:
miguel 2022-12-13 14:21:52 +00:00 committed by MSilva95
parent 1fcd020884
commit 3112b89373
21 changed files with 21 additions and 2 deletions

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -14,5 +14,5 @@ challenge() {
diff <(echo "$submitted") <(echo "$expected")
}
challenge cl-camp1/folder1
challenge cl-camp1/folder2
challenge master-the-ls/folder1
challenge master-the-ls/folder2

View File

@ -19,9 +19,28 @@ Here are some Commands that can help you:
- Replace all occurrences of a character in a file, and print the result:
`tr {{find_character}} {{replace_character}} < {{filename}}`
```console
$ cat uid.txt
My
UID
is
1000
$ tr "\n" " " < uid.txt
My UID is 1000
$
```
- `ls`. List directory contents.
- `sed`. Edit text in a scriptable manner.
```console
$ cat text.txt
unix is a great os. unix is opensource. unix is a free os.
$ sed 's/unix/linux/' text.txt
linux is a great os. unix is opensource. unix is a free os.
$
```
> 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!