Specifications

Version 2.0
227
Appendix D UEFI Shell
Command Standard
Formatted Output
This section describes the general, table-based standard output format for UEFI shell
commands. The format is designed so that tools can easily process output produced
by shell commands.
UEFI shell commands using standard formatted output display the same information
they would normally display, except using rows and columns of comma-delimited
data. The first column always contains a C-style identifier which describes the type of
data on the row. This identifier is known as the table name. Table names which begin
with the ‘_’ character are implementation-specific.
The second and subsequent columns are quoted C-style strings containing the actual
UEFI shell command data. For each UEFI shell command, the format and meaning of
each column depends on the column number and the table name.
Shell commands which support the –sfo option will always produce the table name
ShellCommand. The second column contains the name of the shell command without
any extension. For example:
ShellCommand,”ls”
For example:
FileInfo,"fs0:/efi/boot/winloader.efi","45670","arsh"
FileInfo,"fs0:/efi/boot/timsfile.txt","1250","a"
FileInfo,"fs0:/efi/boot/readme.txt","795","a"
In the syntax below, an identifier is a C-style identifier, which starts with an
alphabetic character or underscore. A quoted string starts with a double-quotation
mark (“) character, followed by zero or more characters and concluding with a double-
quotation mark (“) character. Quotation marks in the string must be escaped by using
a ^ character (i.e. ^”). The ^ character may be inserted using ^^.
Extended Syntax
sfo-format := sfo-row
sfo-row <EOL> <sfo-row>
sfo-row := sfo-table-name, sfo-columns
sfo-table-name := identifier
sfo-columns := sfo-column |