SIGCLEAR Program reference

sgfieldtext

Convert supported text identifiers into numeric fields

Package: sigclear-soig · Version: 1.1.1-4 Download JSON

Description

Convert hexadecimal text to a native long identifier or calculate the
program's fixed-width text hash. These operations are intended for identifiers,
not general-purpose text parsing; hash results depend on the native long
representation of the system.

Synopsis

sgfieldtext <stdin >stdout

Parameters

sgfieldtext parameters
ParameterTypeDefaultDescription
in ifile stdin input dataset
out ofile stdout output dataset

Input and output

Input

input dataset

Output

output dataset

Examples

1. Convert hexadecimal text into a native long identifier

sgfieldtext id:l=data.hex2long <input.sg >identifiers.sg

Input data must contain hexadecimal text; id is a native signed-long scalar.
Check that the parsed value fits the platform's long range. This is not a
portable identifier encoding; inspect values before using them as keys.