ack -
ÆüËܸ쥳¡¼¥É¥³¥ó¥Ð¡¼¥¿
ack [ -{e|s|jn|c} ] [ -{a|A|o file
} ] [ -zuCntd ] [ -{E|S} ] [ <file>... ]
ack
¤Ï¡¢ÆüËܸì
EUC¡¢¥·¥Õ¥ÈJIS¡¢7bit
JIS
¤Î¤½¤ì¤¾¤ì¤Î¥³¡¼¥É·Ï¤ÎÁê¸ßÊÑ´¹¤ò¹Ô¤¦ÆüËܸ쥳¡¼¥É¥³¥ó¥Ð¡¼¥¿¤Ç¤¹¡£
JISÊÒ²¾Ì¾(SJIS
Ⱦ³Ñ²¾Ì¾)¤ÎÊÑ´¹¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£
ÆþÎÏ´Á»ú¥³¡¼¥É¤Ï¼«Æ°È½Ê̤¹¤ë¤³¤È¤¬²Äǽ¤Ç¡¢¤³¤ì¤éÊÒ²¾Ì¾¤¬´Þ¤Þ¤ì¤Æ¤¤¤Æ¤âº®Í𤷤ޤ»¤ó¡£
¤Þ¤¿¥Õ¥¡¥¤¥ë¤ÎÆüËܸ쥳¡¼¥É¤òÃÖ´¹¤¹¤ë¡¢¤È¤¤¤¦»È¤¤Êý¤â¤Ç¤¤Þ¤¹¡£
- -e
- ½ÐÎÏ´Á»ú¥³¡¼¥É¤ò
ÆüËܸìEUC
¤Ë¤·¤Þ¤¹¡£
- -s
- ½ÐÎÏ´Á»ú¥³¡¼¥É¤ò
¥·¥Õ¥ÈJIS
¤Ë¤·¤Þ¤¹¡£
- -jn
- ½ÐÎÏ´Á»ú¥³¡¼¥É¤ò
7bit JIS
¤Ë¤·¤Þ¤¹¡£
n
¤Ï½ÐÎÏ¥³¡¼¥É¤Î¥â¡¼¥É¤Ç¤¹¡£¾Êά¤·¤Æ
-j
¤È¤·¤¿¾ì¹ç¤Ï¡¢
n
¤ÎÃͤϥ³¥ó¥Ñ¥¤¥ë¥¹¥¤¥Ã¥Á
-DDEFJIS
¤ÇÍ¿¤¨¤¿¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£
n
¤Î¿ôÃͤΰÕÌ£¤Ï°Ê²¼¤ÎÄ̤ꡣ
0 1
bit0: ESC$B ESC$@ JISX208-1983,1978ÀÚÂؤ¨
bit1: ESC(J ESC(B JISX201¥í¡¼¥Þ»ú,ASCIIÀÚÂؤ¨
bit2: ESC(I SI/SO JISX201ÊÒ²¾Ì¾¤Î»Ø¼¨ÊýË¡ÀÚÂؤ¨
bit3: ESC$x ESC$(x ( ¤ò¾Êά¤¹¤ë¡¢¤·¤Ê¤¤ÀÚÂؤ¨
<Îã> -j0 : ESC(J, ESC$B, ESC(I
-j1 : ESC(J, ESC$@, ESC(I
-j2 : ESC(B, ESC$B, ESC(I
-j3 : ESC(B, ESC$@, ESC(I
- -c
- ÊÑ´¹½ÐÎϤò¤»¤º¤Ë¡¢ÆþÎÏ¥³¡¼¥É¤ÎȽÄê¤Î¤ß¹Ô¤Ê¤¤¤Þ¤¹¡£
ȽÄê·ë²Ì¤Î¥³¡¼¥É¥¿¥¤¥×¤È¡¢¤½¤ì¤¾¤ì¤Îʸ»ú¿ô¤òɽ¼¨¤·¤Þ¤¹¡£
´Á»ú (kanji, kanji7, err) ¤Ï
2byte
¤Ç1ʸ»ú¤È¤·¤Æ¿ô¤¨¤Æ¤¤¤Þ¤¹¡£
code :¥³¡¼¥É¥¿¥¤¥× ascii,sjis,euc,jis ¤Î4¼ïÎà
kanji :sjis,euc ´Á»ú¤Îʸ»ú¿ô
kana :sjis,euc ÊÒ²¾Ì¾Ê¸»ú¿ô(SJISȾ³Ñ²¾Ì¾)
kanji7 :7bit jis ´Á»ú¤Îʸ»ú¿ô(2byte code)
kana7 :7bit jis ÊÒ²¾Ì¾¤Îʸ»ú¿ô(1byte code)
err :sjis,euc ´Á»ú¤ÇȽÄêÉÔǽʸ»ú¤Îʸ»ú¿ô
ascii :7bit ɽ¼¨²Äǽ(¿Þ·Á)ʸ»ú(0x20¡Á0x7e)ʸ»ú¿ô
ctrl :¥³¥ó¥È¥í¡¼¥ë¥³¡¼¥É¤Îʸ»ú¿ô(²þ¹Ô,TAB´Þ¤à)
other :¤½¤Î¾¤Îʸ»ú¿ô
- -z
- ÆþÎÏ¤Ë JISX201
ÊÒ²¾Ì¾Ê¸»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤ì¤Ð¡¢¤½¤ì¤ò
JISX208
¤ÎÊÒ²¾Ì¾¤ËÃÖ¤´¹¤¨¤Þ¤¹¡£(¤¤¤ï¤æ¤ëȾ³Ñ²¾Ì¾->Á´³Ñ²¾Ì¾ÊÑ´¹)
- -a
- ½ÐÎÏ¥Õ¥¡¥¤¥ë̾¤ò¼«Æ°¤Ç³ä¤êÅö¤Æ¤Þ¤¹¡£½ÐÎÏ¥³¡¼¥É¤Ë±þ¤¸¤Æ¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë̾¤Ë
.jis/.euc/.sjis
¤òÄɲä·¤¿Ì¾Á°¤Ë¤Ê¤ê¤Þ¤¹¡£(¤¹¤Ç¤Ë¤Ä¤¤¤Æ¤¤¤¿
.jis/.euc/.sjis/.ujis
¤Ïºï½ü¤¹¤ë)
- -A
- ¥Õ¥¡¥¤¥ëÆâÍƤò¥³¡¼¥ÉÊÑ´¹¤·¤ÆÃÖ¤´¹¤¨¤Þ¤¹¡£¸µ¥Õ¥¡¥¤¥ë¤Ï
.bak
¤ò¤Ä¤±¤¿Ì¾Á°¤ÇÊݸ¤·¤Þ¤¹¡£
- -t
- ¥¿¥¤¥à¥¹¥¿¥ó¥×¤òÊݸ¤·¤Þ¤¹¡£½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¥¿¥¤¥à¥¹¥¿¥ó¥×¤ò¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤ÈƱ°ì¤Ë¤·¤Þ¤¹¡£
- -o file
- ½ÐÎÏ¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ
file
¤ò»ØÄꤷ¤Þ¤¹¡£ÆþÎÏ¥Õ¥¡¥¤¥ë̾¤è¤êÀè¤Ë¤Ê¤¤¤È͸ú¤Ë¤Ê¤ê¤Þ¤»¤ó¡£(ÆþÎÏ¥Õ¥¡¥¤¥ë¤¬Ê£¿ô¤¢¤ë»þ¤Ï¡¢¤³¤Î¥¹¥¤¥Ã¥Á¤Ïľ¸å¤Ë»ØÄꤷ¤¿¤â¤Î¤ËÂФ·¤Æ¤Î¤ß͸ú)
- -C
- ÊÑ´¹ÉÔǽ´Á»ú¥³¡¼¥É¤ò¡Ö¢¨¡×¤ËÃÖ¤´¹¤¨¤Æ½ÐÎϤ·¤Þ¤¹¡£¤³¤Î¥¹¥¤¥Ã¥Á¤¬¤Ê¤±¤ì¤Ð¥¨¥é¡¼Ê¸»ú¤Ï²¿¤ÎÊÑ´¹¤â̵¤·¤Ë¤½¤Î¤Þ¤Þ½ÐÎϤ·¤Þ¤¹¡£
- -n
- ÆþÎÏ´Á»ú¥³¡¼¥ÉȽÄê»þ¤Ë¡¢¥Õ¥¡¥¤¥ë̾¤Î.jis/.euc/
.sjis/.ujis
¤ò»²¾È¤·¤Þ¤»¤ó¡£
- -u
- ÆþÎϤΠ0x0d
¤ª¤è¤Ó 0x1a
¤ò¼è¤ê½ü¤¤Þ¤¹¡£UNIX
¥â¡¼¥É¤Ç¤¹¡£DOS
-> UNIX
¤Î¥Æ¥¥¹¥ÈÊÑ´¹»þ¤Ë»ÈÍѤǤ¤Þ¤¹¡£(Ãí°Õ:»ÃÄ굡ǽ)
- -d
- ÆþÎÏ¥Õ¥¡¥¤¥ë¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤Ã¤Æ¤â̵»ë¤·¤Þ¤»¤ó¡£Ä̾ï¤Ï¥Ç¥£¥ì¥¯¥È¥ê̾¤¬Í¿¤¨¤é¤ì¤¿»þ¤Ï̵»ë¤·¤Þ¤¹¡£
- -E
- ÆþÎÏ¥³¡¼¥É¼«Æ°È½Äê¤ò»È¤ï¤º¡¢¾ï¤ËÆþÎÏ´Á»ú¥³¡¼¥É¤ò
ÆüËܸìEUC
¤Þ¤¿¤Ï 7bit JIS
¤È¤·¤Æ°·¤¤¤Þ¤¹¡£
- -S
- ÆþÎÏ¥³¡¼¥É¼«Æ°È½Äê¤ò»È¤ï¤º¡¢¾ï¤ËÆþÎÏ´Á»ú¥³¡¼¥É¤ò
¥·¥Õ¥ÈJIS
¤Þ¤¿¤Ï 7bit JIS
¤È¤·¤Æ°·¤¤¤Þ¤¹¡£
¾®³Þ¸¶ÇîÇ· (Ogasawara Hiroyuki)
InterNet: oga@dgw.yz.yamagata-u.ac.jp
DenDen-NET: DEN0006 COR. (0238-21-5952/133.24.72.9,login:den)