/usr/share/doc/HOWTO/ja-html/Man-Page-10.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>THE LINUX MAN-PAGE-HOWTO : ¡°H ¤È¤« ¡°_ ¤Ê¤É¤Î¤Ê¤¤ man page ¤Î¥Æ¥¥¹¥È¤Ï¤É¤¦¤¹¤ì¤ÐÆÀ¤é¤ì¤ë¤«¡©</TITLE>
<LINK HREF="Man-Page-11.html" REL=next>
<LINK HREF="Man-Page-9.html" REL=previous>
<LINK HREF="Man-Page.html#toc10" REL=contents>
</HEAD>
<BODY>
<A HREF="Man-Page-11.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Man-Page-9.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Man-Page.html#toc10">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s10">10. ¡°H ¤È¤« ¡°_ ¤Ê¤É¤Î¤Ê¤¤ man page ¤Î¥Æ¥¥¹¥È¤Ï¤É¤¦¤¹¤ì¤ÐÆÀ¤é¤ì¤ë¤«¡©</A></H2>
<P>col(1) ¤ò¸«¤è¤¦¡£col ¤Ï¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¥·¡¼¥±¥ó¥¹¤ò¼è¤ê½ü¤±¤ë¡£¤½¤ì¤âÌÌ
ÅݤȸÀ¤¦¤Î¤Ê¤é¡¢¼¡¤ÎÍͤ˥¿¥¤¥×¤·¤è¤¦¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
funnyprompt% groff -t -e -mandoc -Tascii manpage.1 | col -bx \
> manpage.txt
</PRE>
</CODE></BLOCKQUOTE>
<P>-t ¤È -e ¤Î¥¹¥¤¥Ã¥Á¤Ï¡¢groff ¤Ë tbl ¤È eqn ¤ò»È¤Ã¤Æ¤ÎÁ°½èÍý¤ò»ØÄꤹ¤ë¡£
Á°½èÍý¤òɬÍפȤ·¤Ê¤¤ man page ¤Ë¤È¤Ã¤Æ¤Ï¡¢²á¾ê¤Ê»ØÄê¤À¤±¤ì¤É¤â¡¢¿ô CPU
¥µ¥¤¥¯¥ë¤Î̵Â̤ˤ·¤«¤Ê¤é¤Ê¤¤¡£È¿ÂФˡ¢É¬Íפʻþ¤Ë -t ¤Î¥¹¥¤¥Ã¥Á¤ò»ØÄꤷ
¤Ê¤¤¤È¡¢É½¤¬¤á¤Á¤ã¤¯¤Á¤ã¤Ë¥Õ¥©¡¼¥Þ¥Ã¥È¤µ¤ì¤Æ¤·¤Þ¤¤¡¢Í³²¤Ç¤¢¤ë¡£Man
page ¤Ë¸Â¤é¤º¡¢groff ¤Î¥É¥¥å¥á¥ó¥È¤ò¥Õ¥©¡¼¥Þ¥Ã¥È¤¹¤ë¤¿¤á¤ËɬÍפʥ³¥Þ
¥ó¥É¤Ë¤Ä¤¤¤Æ¤Ï¡¢¼¡¤ÎÍͤ˥¿¥¤¥×¤¹¤ì¤Ð¡¢¤ï¤«¤ë¤À¤í¤¦¡Êgrog ¥³¥Þ¥ó¥É¤ò»È
¤¦¤«¤é¡¢"¸«Åö¤ò¤Ä¤±¤ë" ¤³¤È¤¬¤Ç¤¤ë¤Î¤Û¤¦¤¬¤¤¤¤¤«¤Ê¡Ë¡£
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
funnyprompt% grog /usr/man/man7/signal.7
groff -t -man /usr/man/man7/signal.7
</PRE>
</CODE></BLOCKQUOTE>
<P>"Grog" ¤Ï¡¢"GROff Guess" ¤«¤éÍè¤Æ¤ª¤ê¡¢¤½¤Î̾¤ÎÄ̤긫Åö¤ò¤Ä¤±¤ë¤³¤È¤ò
¤¹¤ë¡£Grog ¤¬´°Á´¤À¤Ã¤¿¤Ê¤é¤Ð¡¢¤½¤Î½ÐÎϰʾå¤Î¥ª¥×¥·¥ç¥ó¤ÏɬÍפʤ¤¤ó¤À¤±
¤É¡£»ä¤Î·Ð¸³¤Ç¤Ï¡¢grog ¤Ï¡¢¥Þ¥¯¥í¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ä¤¤¤Æ¤Ï¡¢´Ö°ã¤¦¤¬¡¢¥×¥ê
¥×¥í¥»¥Ã¥µ¤Ë¤Ä¤¤¤Æ¤ÏÀµ¤·¤«¤Ã¤¿¡£
<P>
<P>°Ê²¼¤Ï¡¢»ä¤¬½ñ¤¤¤¿´Êñ¤Ê perl ¤Î¥¹¥¯¥ê¥×¥È¤Ç¡¢¥Ú¡¼¥¸¥Ø¥Ã¥À¤È¥Õ¥Ã¥¿¤òºï
½ü¤Ç¤¤ë¡£¤³¤ì¤ò»È¤¨¤Ð¡¢Ä¹¤¯¤Æ¾ÜºÙ¤Ê man page ¤ò°õºþ¤¹¤ë»þ¤Ë¡¢¿ô¥Ú¡¼¥¸
¤Ï¡¢ÆÀ¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£"strip-header" ¤È¤¤¤¦Ì¾¤Ç¥Õ¥¡¥¤¥ë¤ËÊݸ¤·¤Æ
"chmod 755" ¤È¤·¤ÆÍߤ·¤¤¡£
<P>
<PRE>
#!/usr/bin/perl -n
# °ìÅ٤˥ե¡¥¤¥ëÁ´ÂΤòÆɤ߹þ¤ó¤Ç¡§
undef $/;
# ¥Ú¡¼¥¸¶èÀÚ¤ê¤òºï½ü¤·¡§
s/\n{4}\S.{50,}\n{6}\S.{50,}\n{3}/\n/g;
# ºÇ½é¤Î¥Ø¥Ã¥À¤ÈºÇ¸å¤Î¥Õ¥Ã¥¿¤òºï½ü¤·¡§
s/\n\S.{50,}\n//g;
# £²¹Ô°Ê¾å¤Î¶õ¹Ô¤ò£±¹Ô¤Ë¤Þ¤È¤á¤Æ¡§
s/\n{3,}/\n\n/g;
# ¤Ç¤¤¢¤¬¤ê...
print;
</PRE>
<P>¼¡¤Î¤è¤¦¤Ë¡¢`man' ¥³¥Þ¥ó¥É¤Î¼¡¤ÎºÇ½é¤Î¥Õ¥£¥ë¥¿¤È¤·¤Æ»È¤¦¤³¤È¡£Groff ¤Ë
¤è¤Ã¤Æ½ÐÎϤµ¤ì¤ë²þ¹Ô¤Î¿ô¤Ë¡¢½èÍý¤¬°Í¸¤·¤Æ¤¤¤ë¤«¤é¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
funnyprompt% man bash | strip-headers | col -bx > bash.txt
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<HR>
<A HREF="Man-Page-11.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Man-Page-9.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Man-Page.html#toc10">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|