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