xtmkdata
-c calculation formula -a name of a new attribute
[-l number of lines] [-o OUTPUT] [-z] [-t] [-T TEMP DIRECTORY]
DESCRIPTION
New data is created based on the computation formula defined at option -c.
All operators and functions available for xtcal can be used for the formula,
yet the functions will be limiting since no input is required for this command.
PARAMETERS
-c computation formula
method of computation by combining built-in operators and functions.
-l number of lines
the number of lines to be generated. Default value is 10.
-a new attribute
the name of the new attribute created by this command.
FILE OPTIONS
-o output filename
if a suffix of the filename is '.gz', the command automatically returns the output data in zip archive. When "-o" is not specified, the result will sent to standard output.
-T directory of work file
the directory name for temporary files used in this command.
-z zip archive
compress the standard output to zip archive. When the option "-o" is not given and "-z" is specified, the output will be compressed as zip archive.
-t plain text
xtagg treats the input and output data as plain text format.
USAGE
Example 1. Create a new data set with 1 to 100 in each row in sequential order.
e.g. xtmkdata -c 'line()' -l 100 -a number -o rsl.xt
Output file -rsl.xt
Example 2. Create 100 lines of records with numeric values less than 10 in random order.
e.g. xtmkdata -c 'rand(0,10,1)' -l 100 -a number -o rsl.xt
Output file -rsl.xt
If you find a bug in xtmkdata, please send an electronic mail to
musashi@adm.osaka-sandai.ac.jp.
Before sending a bug report, please verify that you have the lastest version of
MUSASHI.
Read this manual carefully to ensure the error is not caused by a quirk in the language.