Specifications

60 Version 2.0
For information about how the quotes are treated in each of the options, see “Shell
Commands”, chapter 5).
3.4.4 Redirection
3.4.4.1 Output Redirection
Output of EFI Shell commands can be redirected to files. For example:
Command > ucs2_output_file_pathname
Command >a ascii_output_file_pathname
Command 1> ucs-2_output_file_pathname
Command 1>a ascii_output_file_pathname
Command 2> ucs-2_output_file_pathname
Command 2>a ascii_output_file_pathname
Command >> ucs-2_output_file_pathname
Command >>a ascii_output_file_pathname
Command 1>> ucs-2_output_file_pathname
Command 1>>a ascii_output_file_pathname
Table 4 shows the special character combinations that are used to denote output
re
direction operations:
Table 4 Output Redirection Syntax
Character
Sequence
Description
> Redirect standard output to a UCS-2 encode file.
>a Redirect standard output to an ASCII file.
1> Redirect standard output to a UCS-2 encoded file.
1>a Redirect standard output to an ASCII file.
2> Redirect standard error to a UCS-2 encoded file.
2>a Redirect standard error to an ASCII file.
>v Redirect standard output to an environment variable, encoded as
UCS-2.
1>v Redirect standard output to an environment variable, encoded as
UCS-2.
2>v Redirect standard error to an environment variable, encoded as UCS-
2.
>> Redirect standard output appended to a UCS-2 encoded file.
>>a Redirect standard output appended to an ASCII file.
1>> Redirect standard output appended to a UCS-2 encoded file.
1>>a Redirect standard output appended to an ASCII file.
>>v Append standard output to an environment variable, encoded as
UCS2.
1>>v Append standard output to an environment variable, encoded as
UCS2.