/usr/share/doc/HOWTO/ja-html/Bash-Prog-Intro-HOWTO-2.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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>BASH Programming - Introduction HOW-TO: Èó¾ï¤Ë¥·¥ó¥×¥ë¤Ê¥¹¥¯¥ê¥×¥È</TITLE>
<LINK HREF="Bash-Prog-Intro-HOWTO-3.html" REL=next>
<LINK HREF="Bash-Prog-Intro-HOWTO-1.html" REL=previous>
<LINK HREF="Bash-Prog-Intro-HOWTO.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="Bash-Prog-Intro-HOWTO-3.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Bash-Prog-Intro-HOWTO-1.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Bash-Prog-Intro-HOWTO.html#toc2">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s2">2. Èó¾ï¤Ë¥·¥ó¥×¥ë¤Ê¥¹¥¯¥ê¥×¥È</A></H2>
<P>¤³¤Î HOW-TO ¤Ï¡¢ÎãÂê¤Ë½ÅÅÀ¤òÃÖ¤¤¤Æ¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Î¥×¥í¥°¥é¥ß¥ó¥°¤Ë´Ø¤¹
¤ë¥Ò¥ó¥È¤ò¡¢½Ò¤Ù¤è¤¦¤È¤·¤Æ¤¤¤Þ¤¹¡£
<P>
<P>¤³¤Î¾Ï¤Ç¤Ï¡¢¤¤¤¯¤Ä¤«¤Î¥Æ¥¯¥Ë¥Ã¥¯¤òÍý²ò¤¹¤ë¤Î¤ËÌòΩ¤Ä¤è¤¦¤Ê´Êñ¤Ê¥¹¥¯¥ê¥×¥È
¤ò¼è¤ê¾å¤²¤Þ¤¹¡£
<P>
<H2><A NAME="ss2.1">2.1 ÅÁÅý¤Î Hello World ¥¹¥¯¥ê¥×¥È</A>
</H2>
<P>
<BLOCKQUOTE><CODE>
<PRE>
#!/bin/bash
echo Hello World
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤³¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¢Æó¹Ô¤·¤«¤¢¤ê¤Þ¤»¤ó¡£°ì¹ÔÌܤϡ¢¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤¹¤ë¤Î¤Ë
¤É¤Î¥×¥í¥°¥é¥à¤ò»È¤¦¤«¤ò¥·¥¹¥Æ¥à¤Ë»Ø¼¨¤·¤Æ¤¤¤Þ¤¹¡£
<P>
<P>Æó¹ÔÌܤϡ¢¤³¤Î¥×¥í¥°¥é¥à¤¬¼Â¹Ô¤¹¤ëÍ£°ì¤ÎÌ¿Î᤬½ñ¤«¤ì¤Æ¤¤¤Æ¡¢¤½¤ì¤Ë¤è¤Ã¤Æ
üËö¤Ë "<CODE>Hello World</CODE>" ¤Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
<P>
<P>¤â¤·¤«¤¹¤ë¤È¡¢<CODE>./hello.sh: Command not found.</CODE> ¤Èɽ¼¨¤µ¤ì¤¿¤«¤â¤·¤ì
¤Þ¤»¤ó¡£¤ª¤½¤é¤¯¡¢ºÇ½é¤Î¹Ô¤Î "<CODE>#!/bin/bash</CODE>" ¤¬Àµ¤·¤¯¤Ê¤¤¤¿¤á¤Ç
¤·¤ç¤¦¡£'<CODE>whereis bash</CODE>' ¤ÈÂǤĤ«¡¢
<A HREF="Bash-Prog-Intro-HOWTO-10.html#finding_bash">¡Öbash ¤òõ¤¹(10.3)¡×</A>¤ò¸«¤ë¤«¤·¤Æ¡¢¤½¤Î¹Ô¤Î½ñ¤Êý¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>
<H2><A NAME="ss2.2">2.2 Èó¾ï¤Ë¥·¥ó¥×¥ë¤Ê¥Ð¥Ã¥¯¥¢¥Ã¥×¥¹¥¯¥ê¥×¥È</A>
</H2>
<P>
<BLOCKQUOTE><CODE>
<PRE>
#!/bin/bash
tar -cZf /var/my-backup.tgz /home/me/
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤³¤Î¥¹¥¯¥ê¥×¥È¤Ç¤Ï¡¢¥¿¡¼¥ß¥Ê¥ë¤Ë¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢¥æ¡¼¥¶¤Î¥Û¡¼
¥à¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍƤò°µ½Ì¥Õ¥¡¥¤¥ë(tarball)¤Ë¤Þ¤È¤á¤Þ¤¹¡£¤³¤ì¤Ï¼ÂºÝ¤Î»ÈÍѤò
°Õ¿Þ¤·¤¿¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤â¤Ã¤ÈÊØÍø¤Ê¥Ð¥Ã¥¯¥¢¥Ã¥×¥¹¥¯¥ê¥×¥È¤ò¡¢¤³¤Îʸ½ñ¤Ç
¸å¤Û¤É¾Ò²ð¤·¤Þ¤¹¡£
<P>
<P>
<P>
<HR>
<A HREF="Bash-Prog-Intro-HOWTO-3.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Bash-Prog-Intro-HOWTO-1.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Bash-Prog-Intro-HOWTO.html#toc2">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|