Skip to content

Commit 50b1c69

Browse files
authored
Revise "Redirect stdout #jv1"
Clarify the explanation of the `1>` operator and improve sentence structure for better readability.
1 parent 00a293d commit 50b1c69

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stage_descriptions/redirection-01-jv1.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
In this stage, you'll implement support for redirecting the output of a command to a file.
22

3+
### The `1>` Operator
4+
35
The `1>` operator is used to redirect the output of a command to a file.
46
But, as a special case, if the file descriptor is not specified before the operator `>`, the output is redirected to the standard output by default, so `>` is equivalent to `1>`.
57

@@ -13,7 +15,7 @@ The tester will execute your program like this:
1315
./your_program.sh
1416
```
1517

16-
It'll then send a series of commands to your shell, executing commands and redirecting their output to a file:
18+
It will then send a series of commands to your shell, executing commands, and redirecting their output to a file:
1719

1820
```bash
1921
$ ls /tmp/baz > /tmp/foo/baz.md
@@ -29,5 +31,4 @@ $ cat /tmp/foo/quz.md
2931
blueberry
3032
```
3133

32-
The tester will check if the commands correctly execute commands and redirect their output to a file as specified.
33-
The file contents will also be checked for correctness.
34+
The tester will check if the commands are executed correctly and redirect their output to a file as specified. The file contents will also be checked for correctness.

0 commit comments

Comments
 (0)