Uefi Shell Command Syntax; Output Redirection; Table 4.1 Wildcard Characters In The Uefi Shell; Table 4.2 Output Redirection - Fujitsu PRIMEQUEST 2000 Series Tool Reference

Hide thumbs Also See for PRIMEQUEST 2000 Series:
Table of Contents

Advertisement

UEFI Command Operations

4.1.2 UEFI shell command syntax

You can view and display the shell environment variables by using the set command.
To access an environment variable value as an argument for a shell command, enclose the variable name in
percent signs "%", as shown below.
%myvariable%
The shell has a special variable called lasterror. This variable retains the value returned by the last executed
shell command.
The file name argument in shell commands uses the following characters as wildcards: "*", "?", "[", and "]".
Character string
*
?
[Character string]

4.1.3 Output redirection

UEFI shell command output can be redirected to a file. The syntax to do so is as follows.
Command > unicode_output_file_pathname
Command >a ascii_output_file_pathname
Command 1> unicode_output_file_pathname
Command 1>a ascii_output_file_pathname
Command 2> unicode_output_file_pathname
Command 2>a ascii_output_file_pathname
Command >> unicode_output_file_pathname
Command >>a ascii_output_file_pathname
Command 1>> unicode_output_file_pathname
Command 1>>a ascii_output_file_pathname
TABLE 4.2 Output redirection lists the types of output redirection and append.
Character string
>
>a
1>
1>a
2>
2>a
>>
>>a
1>>

TABLE 4.1 Wildcard characters in the UEFI shell

Matches 0 or more characters in the file name.
Matches exactly 1 character in the file name.
Matches any of the characters between the brackets [ ]. An example is [azA-Z].

TABLE 4.2 Output redirection

Redirects the standard output to a Unicode file.
Redirects the standard output to an ASCII file.
Redirects the standard output to a Unicode file.
Redirects the standard output to an ASCII file.
Redirects the standard error output to a Unicode file.
Redirects the standard error output to an ASCII file.
Appends the standard output to a Unicode file.
Appends the standard output to an ASCII file.
Appends the standard output to a Unicode file.
Meaning
Meaning

Advertisement

Table of Contents
loading

Table of Contents