2.4 > command
2.4.1 Syntax
> file
>> file
>
2.4.2 Purpose
Saves a copy of all program output (except help) in a file.
2.4.3 Comments
> creates a new file for this output. If the file already exists, the
old one is lost, and replaced by the new one.
>> appends to an existing file, if it exists, otherwise it creates one.
A bare > closes the file.
2.4.4 Examples
- > run1
- Save everything in a file run1 in the current
directory. If run1 already exists, the old one is gone.
- >> allof
- Save everything in a file allof. If allof already exists, it is kept, and the new data is added to the end.
- >
- Close the file. Stop saving.