Browse Source

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

pull/1661/head
miguel 2 years ago committed by MSilva95
parent
commit
3112b89373
  1. 0
      sh/tests/master-the-ls/folder1/1
  2. 0
      sh/tests/master-the-ls/folder1/2
  3. 0
      sh/tests/master-the-ls/folder1/3
  4. 0
      sh/tests/master-the-ls/folder1/4
  5. 0
      sh/tests/master-the-ls/folder1/5
  6. 0
      sh/tests/master-the-ls/folder1/6
  7. 0
      sh/tests/master-the-ls/folder1/7
  8. 0
      sh/tests/master-the-ls/folder1/8
  9. 0
      sh/tests/master-the-ls/folder1/9
  10. 0
      sh/tests/master-the-ls/folder2/a
  11. 0
      sh/tests/master-the-ls/folder2/b
  12. 0
      sh/tests/master-the-ls/folder2/c
  13. 0
      sh/tests/master-the-ls/folder2/d
  14. 0
      sh/tests/master-the-ls/folder2/e
  15. 0
      sh/tests/master-the-ls/folder2/f
  16. 0
      sh/tests/master-the-ls/folder2/g
  17. 0
      sh/tests/master-the-ls/folder2/h
  18. 0
      sh/tests/master-the-ls/folder2/i
  19. 0
      sh/tests/master-the-ls/folder2/j
  20. 4
      sh/tests/master-the-ls_test.sh
  21. 19
      subjects/devops/master-the-ls/README.md

4
sh/tests/master-the-ls_test.sh

@ -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

19
subjects/devops/master-the-ls/README.md

@ -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!

Loading…
Cancel
Save