Additions:
[[CommandTie tie]]
Additions:
===Using with tie===
xproperties output can be easily referenced using the [[CommandTie tie]] command
Example
Input file config.properties a text formated properties file
login=admin
This command
PROPS=$<(xproperties -in config.properties)
tie PROPS './/entry[@key = $_ ]/string()'
echo ${PROPS:login}
admin
xproperties output can be easily referenced using the [[CommandTie tie]] command
Example
Input file config.properties a text formated properties file
login=admin
This command
PROPS=$<(xproperties -in config.properties)
tie PROPS './/entry[@key = $_ ]/string()'
echo ${PROPS:login}
admin
Additions:
||-text ||Output properties in text form to stdout||
||-a,-add var=value||Add (or replace) a variable (name "var", value "value") to the properties||
||-a,-add var=value||Add (or replace) a variable (name "var", value "value") to the properties||
Deletions:
||-a,-add var=value||Add a variable (name "var", value "value") to the properties||
Additions:
||-text ||Output properties in text form to stdout (default)||
Deletions:
Additions:
||-inxml file||Load a Properties file in xml form||
||-text ||Output properties in text form to stdout||
||-xml||Output properties in xml form to stdout||
||-d,-delete var||Delete a variable from the properties||
||-a,-add var=value||Add a variable (name "var", value "value") to the properties||
||-comment||Append or update the comment||
||-v,-var var||print out the value of a variable (cannot be intermixed with -text or -xml) ||
||-text ||Output properties in text form to stdout||
||-xml||Output properties in xml form to stdout||
||-d,-delete var||Delete a variable from the properties||
||-a,-add var=value||Add a variable (name "var", value "value") to the properties||
||-comment||Append or update the comment||
||-v,-var var||print out the value of a variable (cannot be intermixed with -text or -xml) ||
Deletions:
||-text ||Output properties in text form to stdout||
||-xml ||Output properties in xml form to stdout||
||-d var
-delete var ||Delete a variable from the properties||
||-a var=value
-add var=value ||Add a variable (name "var", value "value") to the properties||
||-comment ||Append or update the comment||
||-v var
-var var ||print out the value of a variable (cannot be intermixed with -text or -xml) ||
Additions:
%%(xml)
Additions:
xproperties [ [[SerializationOptions serialization options]] ] [options]
||-in file||Load a Properties file in text form||
||-inxml file ||Load a Properties file in xml form||
||-text ||Output properties in text form to stdout||
||-xml ||Output properties in xml form to stdout||
||-d var
-delete var ||Delete a variable from the properties||
||-a var=value
-add var=value ||Add a variable (name "var", value "value") to the properties||
||-comment ||Append or update the comment||
||-v var
-var var ||print out the value of a variable (cannot be intermixed with -text or -xml) ||
Supports the standard [ [[SerializationOptions serialization options]] ]
[[Commands]]
||-in file||Load a Properties file in text form||
||-inxml file ||Load a Properties file in xml form||
||-text ||Output properties in text form to stdout||
||-xml ||Output properties in xml form to stdout||
||-d var
-delete var ||Delete a variable from the properties||
||-a var=value
-add var=value ||Add a variable (name "var", value "value") to the properties||
||-comment ||Append or update the comment||
||-v var
-var var ||print out the value of a variable (cannot be intermixed with -text or -xml) ||
Supports the standard [ [[SerializationOptions serialization options]] ]
[[Commands]]
Deletions:
-in file - Load a Properties file in text form
-inxml file - Load a Properties file in xml form
-text - Output properties in text form to stdout
-xml - Output properties in xml form to stdout
-d var
-delete var - Delete a variable from the properties
-a var=value
-add var=value - Add a variable (name "var", value "value") to the properties
-comment - Append or update the comment
-v var
-var var - print out the value of a variable (cannot be intermixed with -text or -xml)
Additions:
If a input file is specified as "-" then stdin is used.
If neither -v, -text or -xml is specified then -xml is presumed.
If neither -v, -text or -xml is specified then -xml is presumed.
No Differences