EX(1)			UNIX ¥³¥Þ¥ó¥É		EX(1)

¡ÎÌ¾Á°¡Ï
ex, edit - ÆüËÜ¸ì¥Æ¥­¥¹¥È¥¨¥Ç¥£¥¿

¡Î·Á¼°¡Ï
ex [ - ] [ -v ] [ -t tag ] [ -r ] [ +command ] [ -l ] [ -R ] name ...
edit [ ex options ]

¡Îµ¡Ç½ÀâÌÀ¡Ï
ex ¤Ï¡¢ edit, vi, view ¤Ê¤É¤Î¥¨¥Ç¥£¥¿¥Õ¥¡¥ß¥ê¤Î¤â¤È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ex ¤Ï¡¢ ed(1) ¤Î³ÈÄ¥ÈÇ¤Ç¤¹¡£ºÇ¤âÍ­Ì¾¤Ê³ÈÄ¥µ¡Ç½¤È¤·¤Æ¡¢²èÌÌÊÔ½¸µ¡Ç½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£²èÌÌÊÔ½¸µ¡Ç½¤Ï¡¢ vi ¤ÎÃæ¿´Åª¤Êµ¡Ç½¤Ç¤¹¡£

ed ¤ò»È¤Ã¤¿¤³¤È¤¬¤Ê¤¤¿Í¤ä½é¿´¼Ô¤Ï¡¢¥¨¥Ç¥£¥¿ edit ¤ò»ÈÍÑ¤·¤¿Êý¤¬¤è¤¤¤Ç¤·¤ç¤¦¡£edit ¤Ï¡¢¥·¥¹¥Æ¥à¥×¥í¥°¥é¥Þ¤ä ed ¤ËÀºÄÌ¤·¤¿¿Í¤¬»È¤¦Ê£»¨¤Êµ¡Ç½¤òex ¤«¤é¼è¤ê½ü¤¤¤¿¤â¤Î¤Ç¤¹¡£

CRT Ã¼Ëö¤ò¤ª»ý¤Á¤ÎÊý¤Ï¡¢²èÌÌ»Ø¸þ¤Î¥¨¥Ç¥£¥¿¤ò»È¤¤¤¿¤¤¤È¤ª»×¤¤¤Ç¤·¤ç¤¦¡£¤³¤Î¤è¤¦¤Ê¾ì¹ç¤Ï¡¢ vi(1) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

vi ¤Ï¡¢ ex ¤Î²èÌÌÊÔ½¸µ¡Ç½¤òÃæ¿´¤Ë¤·¤¿¥³¥Þ¥ó¥É¤Ç¤¹¡£

¡ÎÆüËÜ¸ìµ¡Ç½¡Ï
¥Õ¥¡¥¤¥ëÌ¾¤ª¤è¤Ó¥Õ¥¡¥¤¥ëÃæ¤Î¥Æ¥­¥¹¥È¤Ë¡¢EUCÊ¸»ú¤¬»ÈÍÑ¤Ç¤­¤Þ¤¹¡£

ÆüËÜ¸ìÂÐ±þÈÇ¤Ë¤ª¤±¤ë³ÈÄ¥µ¡Ç½

1.  Àµµ¬É½¸½ [ ]
Àµµ¬É½¸½ [ ] ¤òÍÑ¤¤¤Æ¡¢ÈÏ°Ï»ØÄê¤ò¤ª¤³¤Ê¤¦¾ì¹ç¡¢°Û¤Ê¤ë¥³¡¼¥É¥»¥Ã¥È¤Ë¤Þ¤¿¤¬¤ëÈÏ°Ï¤ò»ØÄê¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£
°Û¤Ê¤ë¥³¡¼¥É¥»¥Ã¥È¤Ë¤Þ¤¿¤¬¤ëÈÏ°Ï¤ò»ØÄê¤·¤¿¾ì¹ç¡¢ÈÏ°Ï¤ò»ØÄê¤¹¤ëºÇ½é¤ÈºÇ¸å¤ÎÊ¸»ú¤Ë¤Î¤ß°ìÃ×¤·¤Þ¤¹¡£
Îã¤¨¤Ð¡¢[a-°¡] ¤Ï¡¢[a°¡] ¤ÈÆ±°ì»ë¤µ¤ì¡¢'a' ¤Þ¤¿¤Ï '°¡' ¤È°ìÃ×¤·¤Þ¤¹¡£[^a-°¡] ¤Ï¡¢[^a°¡] ¤ÈÆ±°ì»ë¤µ¤ì¡¢'a' , '°¡' °Ê³°¤Î¤¹¤Ù¤Æ¤ÎÊ¸»ú¤È°ìÃ×¤·¤Þ¤¹¡£

2.  ÀÞ¤êÊÖ¤·½èÍý
²èÌÌ±¦Ã¼¤Î¥«¥é¥à¤ËÁ´³ÑÊ¸»ú¤¬ÇÛÃÖ¤µ¤ì¤ë¾ì¹ç¡¢±¦Ã¼¤Î¥«¥é¥à¤Ë¤Ï¡¢È¾³Ñ¶õÇòÊ¸»ú¤¬É½¼¨¤µ¤ì¡¢Á´³ÑÊ¸»ú¤Ï¡¢¼¡¤Î¹Ô¤ËÉ½¼¨¤µ¤ì¤Þ¤¹¡£

3.  mail ¤ÎÃæ¤ÎÆüËÜ¸ì¥Õ¥¡¥¤¥ëÌ¾
¥·¥¹¥Æ¥à¥¯¥é¥Ã¥·¥å¤Ê¤É¤Ë¤è¤ê¡¢ÊÔ½¸ºî¶È¤¬ÃæÃÇ¤µ¤ì¤¿¾ì¹ç¡¢ÊÔ½¸Ãæ¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢preserve ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÊÝÂ¸¤µ¤ì¤Þ¤¹¡£
Æ±»þ¤Ë¡¢ÊÔ½¸Ãæ¤Î¥Õ¥¡¥¤¥ë¤¬ÊÝÂ¸¤µ¤ì¤¿¤³¤È¤òÅÁ¤¨¤ë mail ¤¬½Ð¤µ¤ì¤Þ¤¹¡£mail ¤Î¥Æ¥­¥¹¥ÈÃæ¤Ë¤ÏÊÔ½¸Ãæ¤Î¥Õ¥¡¥¤¥ëÌ¾¤¬´Þ¤Þ¤ì¤Þ¤¹¤¬¡¢ÆüËÜ¸ì¥Õ¥¡¥¤¥ëÌ¾¤ò»ÈÍÑ¤·¤Æ¤¤¤¿¾ì¹ç¡¢ mail ¤Î¥Æ¥­¥¹¥ÈÃæ¤ÎÆüËÜ¸ì¥Õ¥¡¥¤¥ëÌ¾¤Ï¡¢jconv(1) ¤Ë¤â¤È¤Å¤­¡¢JIS ¥³¡¼¥É¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£

¡Î»²¹ÍÊ¸¸¥¡Ï
Edit: A tutorial (USD:14)
¥³¥ó¥Ô¥å¡¼¥¿¤ä UNIX ¥·¥¹¥Æ¥à¤ò»È¤Ã¤¿¤³¤È¤¬¤Ê¤¤Êý¤òÂÐ¾Ý¤Ë¤·¤¿¡¢edit ¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë¤Ç¤¹¡£

Ex Reference Manual - Version 3.7 (USD:16)
ex ¤Î¥³¥Þ¥ó¥É¥â¡¼¥É¤Ë¤Ä¤¤¤Æ²òÀâ¤·¤¿Êñ³çÅª¤«¤Ä´°àú¤Ê¥Þ¥Ë¥å¥¢¥ë¤Ç¤¹¡£¤·¤«¤·¡¢¥¨¥Ç¥£¥¿¤Î»ÈÍÑÊýË¡¤ò³Ø¤Ö¤Ë¤ÏÅ¬¤·¤Æ¤¤¤Þ¤»¤ó¡£
ex ¤Î¥³¥Þ¥ó¥É¥â¡¼¥É¤ò»ÈÍÑ¤¹¤ë¹âÅÙ¤ÊÊÔ½¸ÊýË¡¤ò³Ø¤Ö¤Ë¤Ï¡¢Brian Kernighan¤Ë¤è¤ë¡¢ ed ¥¨¥Ç¥£¥¿¤Î»ÈÍÑÊýË¡¤ò²òÀâ¤·¤¿¥É¥­¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ed ¥¨¥Ç¥£¥¿¤ÎÆþÌçÊÔ¤È±þÍÑÊÔ¤ÎÆâÍÆ¤Ï¡¢ ex ¤Ë¤â¤Û¤È¤ó¤É¤½¤Î¤Þ¤ÞÅö¤Æ¤Ï¤Þ¤ê¤Þ¤¹¡£

An Introduction to Display Editing with Vi (USD:15)
²èÌÌ¥¨¥Ç¥£¥¿ vi ¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë¤Ç¤¹¡£
¤µ¤é¤Ë¡¢Vi Quick Reference card ¤Ï vi ¥³¥Þ¥ó¥É¤ò¼ÂÍÑÅª¤«¤Äµ¡Ç½Åª¤ÊÊýË¡¤ÇÍ×Ìó¤·¤Æ¤¤¤Þ¤¹¡£
¥Á¥å¡¼¥È¥ê¥¢¥ë¤È¶¦¤Ë»È¤¦¤È¼ÂÍÑÅª¤Ç¤¹¡£

¡Î¥ª¥×¥·¥ç¥ó¡Ï
-	
autoprint ¥ª¥×¥·¥ç¥ó¤ò²ò½ü¤·¡¢ÈóÂÐÏÃÅª¤ËÊÔ½¸¤·¤Þ¤¹¡£¤³¤Î¤È¤­¡¢¥×¥í¥ó¥×¥È: ¤äÊÔ½¸¹Ô¤¬¡¢²èÌÌ¤Ë¥¨¥³¡¼¥Ð¥Ã¥¯¤µ¤ì¤Þ¤»¤ó¡£¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤ÎÃæ¤Ç ex ¤ò»È¤¦¤È¤­¤Ë¤è¤¯»ØÄê¤µ¤ì¤Þ¤¹¡£

-v	
vi ¤òµ¯Æ°¤·¤Þ¤¹¡£ ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é vi ¤òµ¯Æ°¤¹¤ë¤Î¤ÈÆ±¤¸¤Ç¤¹¡£ 

-t tag 	
¥¿¥°¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹Ì¾¤ò tag ¤ËÀßÄê¤·¤Þ¤¹¡£ ¥¿¥°¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ¤Ï¡¢ctags(1) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

-r	
recover ¥³¥Þ¥ó¥É¤òµ¯Æ°¤·¤Þ¤¹¡£ recover ¥³¥Þ¥ó¥É¤Ï¡¢ÊÝÂ¸¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤òÆÉ¤ß½Ð¤·¤Þ¤¹¡£¥Õ¥¡¥¤¥ëÌ¾¤ò¾ÊÎ¬¤¹¤ë¤È¡¢ÊÝÂ¸¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ëÌ¾¤ò¤¹¤Ù¤ÆÉ½¼¨¤·¤Þ¤¹¡£

+command
µ¯Æ°»þ¤Ë¼Â¹Ô¤¹¤ë command ¤òÀßÄê¤·¤Þ¤¹¡£ 

-l	
lisp ¥ª¥×¥·¥ç¥ó¤òÀßÄê¤·¤Þ¤¹¡£ 

-R	
ÆÉ¤ß¼è¤êÀìÍÑ¥â¡¼¥É¤òÀßÄê¤·¤Þ¤¹¡£¤³¤Î¤È¤­¡¢¥Õ¥¡¥¤¥ë¤ÏÊÑ¹¹¤µ¤ì¤Þ¤»¤ó¡£

¡Î¥Õ¥¡¥¤¥ë¡Ï
/usr/lib/nje/ex?.?recover	recover ¥³¥Þ¥ó¥É
/usr/lib/nje/ex?.?preserve	preserve ¥³¥Þ¥ó¥É
/etc/termcap	Ã¼ËöÂ°À­¥Ç¡¼¥¿¥Ù¡¼¥¹
~/.exrc	¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Î¥¨¥Ç¥£¥¿µ¯Æ°¥Õ¥¡¥¤¥ë
.exrc		¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î¥¨¥Ç¥£¥¿µ¯Æ°¥Õ¥¡¥¤¥ë
/tmp/Exnnnnn	¥¨¥Ç¥£¥¿ÍÑ°ì»þ¥Õ¥¡¥¤¥ë
/tmp/Rxnnnnn	Ì¾Á°ÉÕ¤­¥Ð¥Ã¥Õ¥¡ÍÑ°ì»þ¥Õ¥¡¥¤¥ë
/usr/preserve	ÊÝÂ¸ÍÑ¥Ç¥£¥ì¥¯¥È¥ê

¡Î´ØÏ¢¹àÌÜ¡Ï
awk(1), ctags(1), ed(1), grep(1), jconv(1), mail(1), sed(1), vi(1), termcap(5), environ(7)
3.3J ¥ê¥ê¡¼¥¹¥Î¡¼¥È UNIX ¥³¥Þ¥ó¥É ¥é¥¤¥Ö¥é¥ê

¡Î³«È¯¼Ô¡Ï
William Joy
¥ª¥ê¥¸¥Ê¥ë¤Î³«È¯¼Ô
Mark Horton
version 2.7 °Ê¹ß¤Î¥á¥ó¥Æ¥Ê¥ó¥¹¡¢¥Þ¥¯¥íµ¡Ç½¤ÎÄÉ²Ã¡¢¤µ¤Þ¤¶¤Þ¤ÊÆÃ¼ìÃ¼Ëö¤Î¥µ¥Ý¡¼¥È¡¢word abbreviation ¥â¡¼¥ÉÂ¾¤ÎÄÉ²Ã¡£

¡ÎÃí°Õ»ö¹à¡Ï
ex ÆþÎÏ¥â¡¼¥É¤Ç¡¢ÆþÎÏ¤·¤¿Á´³ÑÊ¸»ú¤ò¾Ãµî¤¹¤ë¾ì¹ç¡¢Ê¸»úÃ±°Ì¤Ç¤Ï¤Ê¤¯¥Ð¥¤¥ÈÃ±°Ì¤Ç¾Ãµî¤µ¤ì¤Þ¤¹¡£

¼è¤ê¾Ã¤·¡Êundo¡Ë¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¡¢ÊÑ¹¹¤·¤¿¹Ô¤òÉü¸µ¤·¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¹Ô¤Î¡ÊÊÑ¹¹¸å¤ËÉÕ¤±¤¿¡Ë¥Þ¡¼¥¯¤Ï¤¹¤Ù¤Æ¼º¤ï¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£°ìÊý¡¢¡ÊÊÑ¹¹Á°¤ËÉÕ¤±¤¿¡Ë¥Þ¡¼¥¯¤ÏºÆ¤Ó¸µ¤ËÌá¤ê¤Þ¤¹¡£

¼è¤ê¾Ã¤·¡ÊUndo¡Ë¥³¥Þ¥ó¥É¤Ï¡¢¥Ð¥Ã¥Õ¥¡¤ò¸µ¤Î¾õÂÖ¤Ë¥¯¥ê¥¢¤·¤Þ¤»¤ó¡£

z ¥³¥Þ¥ó¥É¤Ï¡¢ÊªÍýÅª¤Ê¹Ô¿ô¤è¤ê¤âÏÀÍýÅª¤Ê¹Ô¿ô¤òÉ½¼¨¤·¤Þ¤¹¡£Ä¹¤¤¹Ô¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢½ÐÎÏ¤µ¤ì¤ë¹Ô¤¬²èÌÌ¤«¤é¤Ï¤ß½Ð¤¹¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£

¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¡¢- ¥ª¥×¥·¥ç¥ó¤ò»ÈÍÑ¤·¤¿¾ì¹ç¡¢¥Õ¥¡¥¤¥ë¤ÎÆþ½ÐÎÏ¥¨¥é¡¼¤Ï½ÐÎÏ¤µ¤ì¤Þ¤»¤ó¡£

ÂçÊ¸»ú¡¿¾®Ê¸»ú¤Î¶èÊÌ¤ò¤·¤Ê¤¤¸¡º÷¤ò 1 ÅÙ¤Ë¤ª¤³¤Ê¤¦´ÊÃ±¤ÊÊýË¡¤Ï¤¢¤ê¤Þ¤»¤ó¡£

Ì¾Á°ÉÕ¤­¥Ð¥Ã¥Õ¥¡¤ËÆþ¤ì¤¿¥Æ¥­¥¹¥È¤ò»ÈÍÑ¤»¤º¤Ë¥¨¥Ç¥£¥¿¤ò½ªÎ»¤·¤Æ¤â¡¢¥¨¥Ç¥£¥¿¤Ï·Ù¹ð¤ò½Ð¤·¤Þ¤»¤ó¡£

ÆþÎÏ¥Õ¥¡¥¤¥ëÃæ¤Î¥Ì¥ëÊ¸»ú¤Ï¡¢ºï½ü¤µ¤ì¤Æ¡¢¥Õ¥¡¥¤¥ë¤«¤é¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£

ÆüËÜ¸ì¥Õ¥¡¥¤¥ëÌ¾¤ò»ÈÍÑ¤·¤¿¾ì¹ç¡¢¥Õ¥¡¥¤¥ë¤¬ÊÝÂ¸¤µ¤ì¤¿¤³¤È¤òÅÁ¤¨¤ë mail ¤ÎSubject: Íó¤Ë¥¨¥¹¥±¡¼¥×¥³¡¼¥É¤¬Æþ¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£