Sun N1 Service Provisioning System 5.1 Command-Line Interface Reference Manual

util.xfm

This command is used to transform a serialized object representation to a human-readable representation.

Table 14–4 Arguments for the util.xfm Command

Argument 

Syntax 

Description 

in 

[R] 

ReaderWrapper 

The input stream to be transformed 

type 

[R] 

TransformType 

The type of transformation to apply to the input stream 

xfm 

[R] 

ReaderWrapper 

The transformed stream 


Example 14–1 Using the util.xfm Command

This example performs a PERL transformation, which is described in the perl.xml file, on the text specified in the in.txt file. The result is written to standard output. You can use the -of argument to redirect the standard output to a file.


cr_cli -cmd util.xfm -in in.txt -type PERL -xfm perl.xml -u terry -p 123xyz

Since the class of the input stream is ReaderWrapper, you can specify any syntax supported by the String2ReaderWrapper converter to specify each stream's source. For example, to read input from standard input instead of from the in.txt file, use -in - instead of -in in.txt.