v=パラメータで指定した文字列データを新規作成し、a=パラメータで指定した項目名で出力する。 一度に複数の項目を生成することも可能。
mnewstr a= [v=] [l=] [o=] [-nfn] [-nfno] [-x] [-q] [tmpPath=] [--help] [--helpl] [--version]
a= |
新規に作成するデータの項目名を指定する。 |
複数の項目を生成する場合は、項目名をカンマで区切る。 |
|
-nfn,-nfnoオプション指定時は指定の必要はない。 |
|
v= |
新しく作成する文字列を指定する。 |
複数の項目を生成する場合は、値をカンマで区切る。a=で指定した個数と同数でなければならない。 |
|
l= |
新規作成する乱数データの行数を指定する。【デフォルト値:10】 |
custNoとA0001という文字列データを5行作成し、attribute,codeという名前の項目名で出力する。
$ mnewstr a=attribute,code v=custNo,A0001 l=5 o=rsl1.csv #END# kgnewstr a=attribute,code l=5 o=rsl1.csv v=custNo,A0001 $ more rsl1.csv attribute,code custNo,A0001 custNo,A0001 custNo,A0001 custNo,A0001 custNo,A0001
mnewnumber : 連番を生成する。
mnewrand : 乱数を生成する。