$B!!$7$i$$$G$9!#(B

In Message-Id 
<[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;]>
        =?ISO-2022-JP?B?GyRCNVc7fElSPy4bKEI=?= 
<[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;]>$B$5$s(Bwrites:
> $B5W;|$H?=$7$^$9!#(B

> JIS$B%3!<%I$G=q$+$l$?%F%-%9%H%U%!%$%k!J%a!<%k%"!<%+%$%V$G$9!K(Bjis.txt 
> $B$r!"(B
> $B0l9T$:$DFI$_9~$s$G%U%!%$%k$K=q$-B-$7$F$f$/A`:n$G$NJ8;z2=$1$N2sHr:v$K(B
> $B$D$$$F$*?R$M$7$^$9!#(B

$B!!;d$N<~JU$K$"$k4D6-$G$O(B /bin/sh $B$b4^$a$F:F8=$9$k(B shell $B$,KX(B
$B$s$I8+Ev$?$j$^$;$s$G$7$?!#M#0l$N:F8=$7$?$N$O(B bash-2.01.1 $B$G(B
$B$7$?!#(B
$B!!=iBe(B Bourne shell 
[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;](B 
ESC 
$B$rMn$H$7$A$c$&[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;](B
$B$,!":#;~$N(B shell 
[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;](B 
ISO-2022-JP $B$bBg35AGD>$K07$C$F$/$l$A$c(B
$B$&$s$G$9$+$M!#(B


> [&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;]&$4$6$$$^$9!#(B
> $BKG!&b$h$m$7$!&!&j$$$$$?$7$^$9!(B

$B!!J8;z%3!<%I$rHf3S$7$F$_$k$H%R%s%H$,DO$a$k$H;W$$$^$9!#(B

$ echo '$BK\G/$b(B' | od -a
0000000  esc   $   B   K   \   G   /   $   b esc   (   B  nl
0000015
$ echo '$BK\G/$b(B' | { read LINE; echo "$LINE"; } | od -a
0000000  esc   $   B   K   G   /   $   b esc   (   B  nl
0000014

$B!!!VK\!W$N(B 2byte $BL\$N!V(B\$B!W$rMn$H$7$F$7$^$C$F$$$k$;$$$G!"L/$J(B
$BJ8;zNs$K$J$C$F$$$k$s$G$9$M!#(Bshell script $B$GJ8;z?t$r?t$($F$$(B
$B$k$h$&$G$9$+$i!"$3$N8=>]<[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;];$s!#(B
$B!!0lHVL\$NNc$+$iH=$k$h$&$K!"(Becho $B<+BN$O!V(B\$B!W$rMn$H$5$J$$;EMM(B
$B$J$h$&$N$G!"LdBj$O(B read $B$K$"$k$N$G$O$J$$$+$H?d;!=PMh$^$9!#$=(B
$B$3$G(B sh(1) $B$N(B man page $B$N5-=R$+$i(B read $B$rFI$s$G$_$^$9!#(B

< -r $B%*%W%7%g%s$,;XDj$5$l$?>l9g$r=|$-!"%P%C%/%9%i%C%7%e$OFCJL$K07$o(B
< $B$l$^$9!#%P%C%/%9%i%C%7%eJ8;z$,2~9TJ8;z$ND>A0$K$"$k>l9g!"%P%C%/%9(B
< $B%i%C%7%eJ8;z$H2~9TJ8;z$O:o=|$5$l$^$9!#$=$NB>$NJ8;z$ND>A0$K%P%C%/(B
< $B%9%i%C%7%e$,$"$k>l9g!"%P%C%/%9%i%C%7%e$O:o=|$5$l!"J8;z$,(B IFS $B$K4^(B
< $B$^$l$F$$$F$b!"(BIFS $B$NJ8;z$G$J$$$+$N$h$&$K07$o$l$^$9!#(B

$B!!$H$$$&Lu$G(B read $B$K(B -r option 
$B$r$D$1$k$3$H$G!V(B\$B!W$rFCJL;k$7(B
$B$J$/$J$k$h$&$G$9!#(B

$ echo '$BK\G/$b(B' | { read -r LINE; echo "$LINE"; } | od -a
0000000  esc   $   B   K   \   G   /   $   b esc   (   B  nl
0000015


> $B%7%'%k%9%/%j%W%H$+$i$N=PNO$G$NJ8;z2=$1$rM^@)$9$kJ}K!$OM-$j$^$9$G$7$g(B
> $B$&$+!)(B

$B!!0J>e$N$h$&$K!"(Bscript $BFb$N(B read $B$K(B -r option 
$B$r$D$1$k$H$$$&(B
$B$3$H$G2r7h=PMh$k$H;W$$$^$9$,G!2?$G$7$g$&$+!)(B


$B!!0x$_$K(B FreeBSD $B$N(B /bin/sh 
[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;](B 
Almquist shell $B$G$9$,!"(B
$B$=$NNr;K$rI32r$$$F$_$k$H!"Ev=i$O(B read $B$N;EMM$H$7$F$O(B -r $BIU>u(B
$BBV$,4{DjCM$G!"!V(B\$B!W$r2r<a$9$k$N$O(B -e option $B$N;E;v$G$7$?!#(B
$B!!$=$N$&$A(B -e $B$,4{DjCM$H$J$C$F!"$=$N2r=|MQ$K(B -r $B$,;EMM$KDI2C(B
$B$5$l$k$N$G$9$,!"(BFreeBSD 
[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;](B 
3.3.0 $B$N;~$N$3$H$G$9!#(BCVS $B$r8+(B
$B$k$H(B jkh $B$N=pL>$,8+$D$+$j$^$9$M!#(B
$B!!(B-e option 
[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;];D$5$l$^$7$?$,!"4{DjCM$G$N(B
$BF0:n$,$3$N(B version $B$+$iJQ99$K$J$C$F$7$^$C$F$$$^$9!#$3$N$?$a!"(B
/bin/sh $B$O(B Bourne shell $B8_49$G$O$J$/$J$j$^$9!#(B
$B!!(B3.3.0 $B$H$$$&$H!"(BFreeBSD $B$,LBAv$r7+JV$7;O$a$?;~4|$G$9$N$G!"(B
$B$3$&$$$&;EMMJQ99$b$`$Y$J$k$+$J$H$$$&$H$3$m$G$9$+$M!#$^$!$3$N(B
$B;EMM$O(B POSIX 
$B;[&#x30E1;&#x30FC;&#x30EB;&#x30A2;&#x30C9;&#x30EC;&#x30B9;&#x4FDD;&#x8B77;];v>p$G$b$"$k$N$G$9$,!#(B

                                               $B$7$i$$(B $B$?$+$7(B

メールによる返信