/usr/share/doc/HOWTO/ja-html/DOS-Win-to-Linux-HOWTO-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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>From DOS/Windows to Linux HOWTO: $B$A$g$C$H$@$1%W%m%0%i%_%s%0(B</TITLE>
<LINK HREF="DOS-Win-to-Linux-HOWTO-11.html" REL=next>
<LINK HREF="DOS-Win-to-Linux-HOWTO-9.html" REL=previous>
<LINK HREF="DOS-Win-to-Linux-HOWTO.html#toc10" REL=contents>
</HEAD>
<BODY>
<A HREF="DOS-Win-to-Linux-HOWTO-11.html">$B<!$N%Z!<%8(B</A>
<A HREF="DOS-Win-to-Linux-HOWTO-9.html">$BA0$N%Z!<%8(B</A>
<A HREF="DOS-Win-to-Linux-HOWTO.html#toc10">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s10">10.</A> <A HREF="DOS-Win-to-Linux-HOWTO.html#toc10">$B$A$g$C$H$@$1%W%m%0%i%_%s%0(B</A></H2>
<H2><A NAME="Shell Scripts"></A> <A NAME="ss10.1">10.1</A> <A HREF="DOS-Win-to-Linux-HOWTO.html#toc10.1">$B%7%'%k%9%/%j%W%H(B: $B%P%C%A%U%!%$%k$N6/2=HG(B </A>
</H2>
<P>DOS $B$rMxMQ$7$F$$$?$H$-D9$$%3%^%s%I%i%$%s$N%7%g!<%H%+%C%H$r:n$k$?$a$K%P%C(B
$B%A%U%!%$%k$r;HMQ$7$F$$$?$J$i(B ($B;d$b$h$/$7$^$7$?(B)$B!"F1$8L\E*$OE,@Z$J%(%$(B
$B%j%"%9$r(B<CODE>profile</CODE> $B$d(B <CODE>.bash_profile</CODE> $B$K5-=R$9$k$3$H$GC#@.$G$-$^(B
$B$9(B ($B>e$NNc$r;2>H(B)$B!#(B $B$G$b!"$b$C$HJ#;($J%P%C%A%U%!%$%k$r;H$C$F$$$?$J$i%7%'(B
$B%k$K$h$k%9%/%j%W%H8@8l$r$-$C$H$"$J$?$O9%$-$K$J$k$O$:$G$9!#$3$l$O8E$-NI(B
$B$-(B QBasic $B$HF1$8$+!"$=$l0J>e$K%Q%o%U%k$G$9!#$3$l$OJQ?t$d(B while$B!"(Bfor$B!"(B
case$B!"(Bif... then... else $B$N$h$&$J9=B$$r;}$A!"$=$N$[$+$K$b$?$/$5$s$NFC(B
$BD'$,$"$j$^$9!#$3$l$O!VK\J*!W$N%W%m%0%i%_%s%08@8l$NBe$o$j$K$J$j$^$9!#(B</P>
<P>$B%9%/%j%W%H(B (DOS $B>e$N(B .BAT $B$KAjEv(B) $B$r=q$/$K$O!"L?Na$r4^$s$@I8=`$N(B ASCII
$B%U%!%$%k$r5-=R$7!"%;!<%V$7$^$9!#$=$N8e(B <CODE>chmod +x <scriptfile></CODE>
$B%3%^%s%I$G<B9T2DG=$K$9$l$P$h$$$@$1$G$9!#%9%/%j%W%H$r<B9T$9$k$K$O%U%!(B
$B%$%kL>$r%?%$%W$7$F$/$@$5$$!#(B</P>
<P>$BCm0U(B! <CODE>vi</CODE> $B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$N%9%/%j%W%H5-=R$O$H$F$bI}$N9-$$%5%V%8%'%/%H$G$"$j!"$=$l(B
$B$@$1$GK\$,=q$1$F$7$^$($^$9$N$G!"$3$l0J>e$O?<F~$j$7$^$;$s!#$3$3$G$OC1=c(B
$B$K4pK\$H$J$k%k!<%k$r3P$($F$b$i$&$?$a$K%7%'%k%9%/%j%W%H$NNc$r5s$2$k$3$H(B
$B$K$7$^(B
$B$9(B:</P>
<P>
<HR>
<PRE>
#!/bin/sh
# sample.sh
# $B$3$l$O%3%a%s%H(B
# $B0l9TL\$rJT=8$7$J$$$h$&$K!#$=$l$O$=$3$K$"$kI,MW$,$"$j$^$9!#(B
echo "$B$3$N%7%9%F%`$O(B:" `uname -a` # $B%3%^%s%I$N=PNO$r;H$&(B
echo "$B;d$NL>A0$O(B $0" # $BAH9~$_$NJQ?t(B
echo "$B$"$J$?$O<!$N(B" $# "$B%Q%i%a!<%?$rM?$($^$7$?(B: "$*
echo "$B:G=i$N%Q%i%a!<%?$O(B: "$1
echo -n "$B$"$J$?$NL>A0$O(B? " ; read your_name
echo $B0c$$$K5$$E$-$^$9$+(B: "hi $your_name" # " $B$G0zMQ(B
echo $B0c$$$K5$$E$-$^$9$+(B: 'hi $your_name' # ' $B$G0zMQ(B
DIRS=0 ; FILES=0
for file in `ls .` ; do
if [ -d ${file} ] ; then # $B%U%!%$%k$,%G%#%l%/%H%j$J$i(B
DIRS=`expr $DIRS + 1` # DIRS = DIRS + 1
elif [ -f ${file} ] ; then
FILES=`expr $FILES + 1`
fi
case ${file} in
*.gif|*jpg) echo "${file}: $B2hA|%U%!%$%k(B" ;;
*.txt|*.tex) echo "${file}: $B%F%-%9%H%U%!%$%k(B" ;;
*.c|*.f|*.for) echo "${file}: $B%=!<%9%U%!%$%k(B" ;;
*) echo "${file}: $B0lHLE*$J%U%!%$%k(B" ;;
esac
done
echo " ${DIRS} $B8D$N%G%#%l%/%H%j$H(B ${FILES} $B8D$N%U%!%$%k$,8+IU$+$j$^$7$?(B"
ls | grep "ZxY--!!!WKW"
if [ $? != 0 ] ; then # $B%3!<%I$N:G8e$N%3%^%s%I$+$i(B exit $B$9$k(B
echo "ZxY--!!!WKW not found"
fi
echo "$B$3$l$G==J,$+$J!#!#$5$i$J$k>pJs$O(B 'man bash'"
</PRE>
<HR>
</P>
<H2><A NAME="ss10.2">10.2</A> <A HREF="DOS-Win-to-Linux-HOWTO.html#toc10.2">C $B8@8l$r$"$J$?$K(B</A>
</H2>
<P>$B9%$`9%$^$6$k$H$rLd$o$:!"(BUNIX $B>e$G$N%7%9%F%`8@8l$O(B C $B$G$9!#$[$+$K$b$?$/(B
$B$5$s$N8@8l(B (Java$B!"(BFORTRAN$B!"(BPascal$B!"(BLisp$B!"(BBasic$B!"(BPerl$B!"(Bawk...) $B$,;HMQ2D(B
$BG=$G$9!#(B</P>
<P>$B$"$J$?$,(B C $B$rCN$C$F$$$k$b$N$H$7$F!"$3$l$i$O:#$^$G(B Turbo C++ $B$d$=$l$i(B
DOS $BMQ$N%3%s%Q%$%i$r;H$C$F$-$??M$X$N%,%$%I%i%$%s$G$9!#(BLinux $B$N(B C
$B%3%s%Q%$%i$O(B <CODE>gcc</CODE> $B$H8F$P$l!"$3$l$O%Y%k$dE+$J$I$N(B DOS $B$N$b$N$G(B
$BDL>oIUB0$5$l$F$$$k5!G=$r7g$-$^$9!#(BIDE$B!"%*%s%i%$%s%X%k%W!"E}9g$5$l$?(B
$B%G%P%C%,$J$I$b$"$j$^$;$s!#C1=c$J%3%^%s%I%i%$%s$N%3%s%Q%$%i$G$9$,(B
$B$H$F$b6/NO$GM-G=$G$9!#I8=`$N(B <CODE>hello.c</CODE> $B$r%3%s%Q%$%k$9$k$K$O(B:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ gcc hello.c
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$l$G<B9T%U%!%$%k(B <CODE>a.out</CODE> $B$r:n@.$7$^$9!#<B9T%U%!%$%k$K0c$&L>A0$rM?(B
$B$($k$K$O(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ gcc -o hola hello.c
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B%i%$%V%i%j$r%W%m%0%i%`$K%j%s%/$9$k$K$O!"(B-l<libname> $B$N$h$&$J%9%$%C(B
$B%A$rDI2C$7$^$9!#Nc$($P?t3X%i%$%V%i%j$r%j%s%/$9$k$K$O(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ gcc -o mathprog mathprog.c -lm
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>(<CODE>-l<libname></CODE> $B%9%$%C%A$O(B <CODE>gcc</CODE> $B$K%i%$%V%i%j(B
<CODE>/usr/lib/lib<libname>.so</CODE> $B$r%j%s%/$5$;$^$9!#$D$^$j(B
<CODE>-lm</CODE> $B$O(B <CODE>/usr/lib/libm.so</CODE> $B$r%j%s%/$7$^$9(B)</P>
<P>$B$3$3$^$G$O$$$$46$8$G$9$M!#$G$b%W%m%0%i%`$,J#?t$N%=!<%9%U%!%$%k$K(B
$B$h$C$F$G$-$F$$$k>l9g$O!"(B<CODE>make</CODE> $B$H$$$&%f!<%F%#%j%F%#$r;H$&I,MW$,$"$j(B
$B$^$9!#2>$K$"$J$?$,<0$N9=J82r@O$r$9$k%W%m%0%i%`$r=q$$$?$H$7$^$9!#(B
$B$3$l$N%=!<%9%U%!%$%k$K$O(B <CODE>parser.c</CODE> $B$H(B #include $B$5$l$kFs$D$N(B
$B%X%C%@%U%!%$%k!"(B<CODE>parser.h</CODE> $B$H(B <CODE>xy.h</CODE> $B$,$"$j$^$9!#(B <CODE>parser.c</CODE>
$B$K$"$k%k!<%A%s$r(B <CODE>parser.h</CODE> $B$r(B #include $B$9$k(B <CODE>calc.c</CODE> $B$G;H$$(B
$B$?$$$H$7$^$9!#$J$s$F$a$A$c$/$A$c$J(B! $B$I$&$d$C$?$i(B <CODE>calc.c</CODE> $B$r%3%s%Q(B
$B%$%k$G$-$k$N$G$7$g$&(B?</P>
<P>$B$=$3$G!"%3%s%Q%$%i$K%=!<%9$H%*%V%8%'%/%H%U%!%$%k4V$N0MB8>u67$r(B
$B65$($k(B <CODE>Makefile</CODE> $B$H8F$P$l$k$b$N$r=q$+$J$1$l$P$J$j$^$;$s!#(B</P>
<P>
<HR>
<PRE>
# $B$3$l$O(B calc.c $B$r%3%s%Q%$%k$9$k$?$a$N(B Makefile
# $B<($5$l$?$H$3$m$G(B <TAB> $B%-!<$r2!$9$h$&$K(B
calc: calc.o parser.o
<TAB>gcc -o calc calc.o parser.o -lm
# calc $B$OFs$D$N%*%V%8%'%/%H%U%!%$%k$K0MB8$7$^$9(B: calc.o $B$H(B parser.o
calc.o: calc.c parser.h
<TAB>gcc -c calc.c
# calc.o $B$OFs$D$N%=!<%9%U%!%$%k$K0MB8$7$^$9(B
parser.o: parser.c parser.h xy.h
<TAB>gcc -c parser.c
# parser.o $B$O;0$D$N%=!<%9%U%!%$%k$K0MB8$7$^$9(B
# Makefile $B=*N;(B
</PRE>
<HR>
</P>
<P>$B$3$N%U%!%$%k$r(B <CODE>Makefile</CODE> $B$H$$$&L>A0$GJ]B8$7!"%W%m%0%i%`$r%3%s%Q%$(B
$B%k$9$k$?$a$K(B <CODE>make</CODE> $B$H%?%$%W$7$^$7$g$&!#$=$N$[$+$N<jCJ$H$7$F!"(B
<CODE>calc.mak</CODE> $B$H$$$&L>A0$GJ]B8$7!"(B<CODE>make -f calc.mak</CODE> $B$H%?%$%W$9$k$3(B
$B$H$b$G$-$^$9!#$=$7$F$3$l$O$b$A$m$s(B RMP $B$7$F$_$F$/$@$5$$!#(B man $B$K:\$C$F(B
$B$$$k(B C $B4X?t$K$D$$$F$N>pJs$r;HMQ$9$k$3$H$b$G$-$^$9!#Nc$($P%;%/%7%g%s(B 3
$B$@$C$?$i0J2<$N$h$&$K$7$^$9!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ man 3 printf
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B%W%m%0%i%`$r%G%P%C%0$9$k$K$O(B <CODE>gdb</CODE> $B$r;H$$$^$7$g$&!#;H$$J}$O(B
<CODE>info gdb</CODE> $B$G3X$S$^$7$g$&!#(B</P>
<P>Linux $B$G$O$?$/$5$s$N%i%$%V%i%j$,;HMQ2DG=$G$9!#$3$NCf$G$b(B <CODE>ncurses</CODE>
($B%F%-%9%H8z2L(B)$B!"$=$7$F(B <CODE>svgalib</CODE> ($B%3%s%=!<%k%0%i%U%#%C%/%9(B) $B$r:G=i(B
$B$K;H$C$F$_$?$/$J$k$G$7$g$&!#$b$7$"$J$?$KM&5$$,$"$l$P(B X11 $B%W%m%0%i%_%s(B
$B%0$KD)@o$7$F$_$k$N$b0-$/$J$$$+$b$7$l$^$;$s(B ($B$=$s$J$K$OFq$7$/$"$j$^$;$s(B)$B!#(B
X11 $B%W%m%0%i%`5-=R$r4JC1$K$9$kJ#?t$N%i%$%V%i%j$,$"$j$^$9!#(B
<A HREF="http://www.xnet.com/~blatura/linapp6.html">http://www.xnet.com/~blatura/linapp6.html</A> $B$r8+$F$_$F$/$@$5$$!#$G(B
$B$b(B Gtk $B$,(B Linux $BI8=`$K$J$C$FMh$F$$$k$3$H$rK:$l$:$K!#(B</P>
<P>$B$?$/$5$s$N%(%G%#%?$O(B IDE $B$H$J$k$3$H$b$G$-$^$9!#Nc$($P(B <CODE>emacs</CODE> $B$H(B
<CODE>jed</CODE> $B$K$OJ8>O9=@.%O%$%i%$%H!"<+F0%$%s%G%s%H!"$H$$$C$?$?$/$5$s$N(B
$B5!G=$,$"$j$^$9!#$[$+$NJ}K!$H$7$F!"(B
<A HREF="ftp://sunsite.unc.edu:/pub/Linux/devel/debuggers/">ftp://sunsite.unc.edu:/pub/Linux/devel/debuggers/</A>.
$B$+$i(B <CODE>rhide</CODE> $B%Q%C%1!<%8$rF~<j$7$F$_$k$N$b$$$$$+$b$7$l$^$;$s!#(B
$B$3$l$O(B Borland IDE $B$N%/%m!<%s$G!"$"$J$?$b5$$KF~$k$H;W$$$^$9!#(B</P>
<HR>
<A HREF="DOS-Win-to-Linux-HOWTO-11.html">$B<!$N%Z!<%8(B</A>
<A HREF="DOS-Win-to-Linux-HOWTO-9.html">$BA0$N%Z!<%8(B</A>
<A HREF="DOS-Win-to-Linux-HOWTO.html#toc10">$BL\<!$X(B</A>
</BODY>
</HTML>
|