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

[Ì¾Á°]
cat - ¥Õ¥¡¥¤¥ë¤ÎÏ¢·ë¤È½ÐÎÏ

[·Á¼°]
cat [ -u ] [ -n ] [ -s ] [ -v ] file ...

[µ¡Ç½ÀâÌÀ]
cat¤Ï¡¢»ØÄê¤·¤¿³Æfile¤ò½ç¼¡ÆÉ¤ß¼è¤ê¡¢É¸½à½ÐÎÏ¤ËÉ½¼¨¤·¤Þ¤¹¡£

		cat file

¤Ï¡¢É¸½à½ÐÎÏ¤Ë¥Õ¥¡¥¤¥ë¤òÉ½¼¨¤·¡¢
		
		cat file1 file2 > file3

¤Ï¡¢ºÇ½é¤Î2¤Ä¤Î¥Õ¥¡¥¤¥ë¤òÏ¢·ë¤·¡¢Âè3¤Î¥Õ¥¡¥¤¥ë¤ËÆþ¤ì¤Þ¤¹¡£
 
ÆþÎÏ¥Õ¥¡¥¤¥ë¤ò»ØÄê¤·¤Ê¤¤¾ì¹ç¤ä°ú¿ô¤Ë-¤ò»ØÄê¤·¤¿¾ì¹ç¤Ï¡¢cat¤ÏÉ¸½àÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤éÆÉ¤ß¹þ¤ß¤Þ¤¹¡£É¸½à½ÐÎÏ¤¬¥é¥¤¥ó¥Ð¥Ã¥Õ¥¡¤Î»þ¡¢¥¿¡¼¥ß¥Ê¥ë¤òÉ¸½à½ÐÎÏ¤È¤·¤Ê¤±¤ì¤Ð¡¢½ÐÎÏ¤Ïstat(2)¤Ë¤è¤ê¿ä¾©¤µ¤ì¤ë¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Ç¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£

-u
½ÐÎÏ¤Ï¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Þ¤» ¤ó¡£

-n
¹ÔÈÖ¹æ¤Ë¤è¤Ã¤ÆÍ¥Àè¤µ¤ì¤ë½ÐÎÏ¹Ô¤«¤éÉ½¼¨¤·¡¢1¤«¤é½çÈÖ¤ËÈÖ¹æ¤ò¤Ä¤±¤Æ¤¤¤­¤Þ¤¹¡£

-b
-n¥ª¥×¥·¥ç¥ó¤È¤È¤â¤Ë»ÈÍÑ¤·¡¢¶õÇò¹Ô¤«¤é¹ÔÈÖ¤ò¾Ãµî¤·¤Þ¤¹¡£

-s
¶õÇò¹Ô¤¬ÎÙÀÜ¤·¤ÆÂ¿¿ô¤¢¤ë¤È¡¢¤½¤ì¤é¤Î¶õÇò¹Ô¤ò¾Ãµî¤·¡¢½ÐÎÏ¤È¤·¤Æ1¤Ä¤Î¥¹¥Ú¡¼¥¹¤òÉ½¼¨¤·¤Þ¤¹¡£

-v
Èó°õ½ñÊ¸»ú¤ò¼±ÊÌ¤Ç¤­¤ë¤è¤¦¤ËÉ½¼¨¤·¤Þ¤¹¡£À©¸æÊ¸»ú¤Ï^X(control-x)¤Î¤è¤¦¤Ë½ÐÎÏ¤µ¤ì¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢DEL(8¿Ê¿ô0177)¤Ï^?¤È½ÐÎÏ¤µ¤ì¤Þ¤¹¡£ÈóASCIIÊ¸»ú(ºÇ¾å°Ì¥Ó¥Ã¥È¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë)¤Ï¡¢M-x(x¤Ï²¼°Ì7¥Ó¥Ã¥È¤Ë¤è¤Ã¤Æ·èÄê¤µ¤ì¤ë)¤È½ÐÎÏ¤µ¤ì¤Þ¤¹¡£

-e
-v¤ÈÊ»ÍÑ¤µ¤ì¡¢³Æ¹ÔËö¤ËÊ¸»ú$¤ò½ÐÎÏ¤·¤Þ¤¹¡£

-t
-v¤È¶¦¤ËÍÑ¤¤¤ë¤È¡¢¥¿¥Ö¤ò^I¤È½ÐÎÏ¤·¤Þ¤¹¡£

[ÆüËÜ¸ìµ¡Ç½]
 file¤ÎÌ¾¾Î¤ËEUCÊ¸»ú¤ò´Þ¤à¤â¤Î¤ò½èÍý¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤Þ¤¿fileÆâ¤ËEUCÊ¸»ú¤ò´Þ¤à¥Õ¥¡¥¤¥ë¤ò½èÍý¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

[´ØÏ¢¹àÌÜ]
 cp(1), ex(1), more(1), pr(1), tail(1)
 
[Ãí°Õ»ö¹à]
cat a b > a ¤È cat a b > b¤Î¥³¥Þ¥ó¥É·Á¼°¤Ç¤Ï¡¢¤â¤È¤Î¥Õ¥¡¥¤¥ë¤Ï¼º¤ï¤ì¤ë¤Î¤ÇÃí°Õ¤¬É¬Í×¤Ç¤¹¡£