uspTukubaiコマンドに関する様々な資料がここにあります。

 

 

魂内検索

DOCUMENTS

COMMAND

FORUM

UEC DOCS

VIDEO

 

ABC順リスト |  カテゴリ別リスト

(動画教材準備中)

cktag_inlist

<概要>

  cktag_inlist : tag 形式データのリスト内存在チェック

<書式>

Usage   : cktag_inlist <check_file> <tag_file>
Option  : --through <string>
          --ngthrough
          +ng<N>
Version : Thu Sep 12 22:41:36 JST 2013

<説明>

<check_file> に記述されているタグ名とリストファイル名
に従い、<tag_file> のデータのリスト内存在チェックを
します。指定タグ項目の値が指定リストに存在しない場合は、
標準エラー出力に行番号とタグ名と項目値と指定リストファイル名
を出力します。正しい行は標準出力に出力されます。

<オプション>
--through <string>
リスト内存在チェックの対象外の項目値を指定します。
デフォルトは"_" です。

<例>

[usp1 usp@ ~]$ cat check
tagA /tmp/OS_FILE      <-- タグ名とリストファイル名(絶対パスであること)
tagB /tmp/ABC_FILE

[usp1 usp@ ~]$ cat /tmp/OS_FILE
Linux     # comment
UNIX      # comment
Windows   # comment

[usp1 usp@ ~]$ cat /tmp/ABC_FILE
abc   # comment
cde   # comment

[usp1 usp@ ~]$ keta tagdata
tagA    tagB tagC
Linux   _    xxxx
Mac     abc  xxxx
Windows cde  xxxx

[usp1 usp@ ~]$ cktag_inlist check tagdata 2> error > ok
[usp1 usp@ ~]$ echo $?
1
[usp1 usp@ ~]$ cat error
2 tagA Mac /tmp/OS_FILE
[usp1 usp@ ~]$ cat ok
tagA    tagB tagC
Linux   _    xxxx
Windows cde  xxxx