Print a named field value directly to stdout.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_header_get_field_value

Purpose

Print a named field value directly to stdout.

Arguments

  • $1 — Source path.
  • $2 — Section name.
  • $3 — Field name.

Output

Writes the field value or an empty string when not found.

Returns

Status returned by printf (the lookup status is not propagated).

Usage

  sgnd_header_get_field_value "$source_file" Metadata Version