docs(in-back-ground): removing repetition

This commit is contained in:
miguel 2023-04-06 13:21:50 +01:00 committed by MSilva95
parent b2cfe769b4
commit da908f10f9
1 changed files with 1 additions and 2 deletions

View File

@ -8,8 +8,7 @@ Create a script `in-back-ground.sh` which will execute a job in the background t
- The output of the cat command will be piped to the `grep` command, which will search for the string `"moon"` in the file.
- If the `grep` command succeeds (if it finds the string "moon"):
- You will print `"The moon fact was found!"` to the `output.txt` file. If it fails the file `output.txt` is not created.
- You will should also print the line which contains the string to the `stdout`.
- Redirect the `stdout` to a new file `output.txt`.
- You should also print the line which contains the string to the `stdout`.
You must do all these steps running only one job and using the command `nohup`!