This file is indexed.

/usr/share/doc/HOWTO/ja-html/Bash-Prompt-HOWTO-6.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Bash Prompt HOWTO: $BFCJL$JJ8;z(B: 8$B?J?t%(%9%1!<%W%7!<%1%s%9(B</TITLE>
 <LINK HREF="Bash-Prompt-HOWTO-7.html" REL=next>
 <LINK HREF="Bash-Prompt-HOWTO-5.html" REL=previous>
 <LINK HREF="Bash-Prompt-HOWTO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="Bash-Prompt-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Bash-Prompt-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Bash-Prompt-HOWTO.html#toc6">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s6">6. $BFCJL$JJ8;z(B: 8$B?J?t%(%9%1!<%W%7!<%1%s%9(B</A></H2>

<P>$B%-!<%\!<%I$+$iF~NO$G$-$kJ8;z0J30$K$b!"%9%/%j!<%s>e$KI=<($G$-$kJ8;z$OBt;3(B
$B$"$j$^$9!#$"$J$?$,$I$s$J%U%)%s%H$r;H$C$F$$$k$N$+$r3NG'$9$k$?$a$N%9%/%j%W%H$r(B
$B:n$C$F$_$^$7$?$N$G!";H$C$F$_$F2<$5$$!#$3$N$h$&$JJ8;z$r;H$&$?$a$KI,MW$J(B
$B<g$J%3%^%s%I$O(B"echo -e"$B$G$9!#(B"-e"$B%9%$%C%A$K$h$j!"(Becho $B$O%P%C%/%9%i%C%7%e$G(B
$B%(%9%1!<%W$5$l$?J8;z$r2r<a$9$k$h$&$K$J$j$^$9!#(B8$B?J?t(B200-400$B$GI=<($5$l$k$N$O!"(B
$BI8=`$N(B Linux $B%U%)%s%H$H(B VGA $B%U%)%s%H$G$OHs>o$K0[$J$C$F$$$^$9!#$3$l$i$N(B
$B%(%9%1!<%W%7!<%1%s%9$,$"$J$?$NC<Kv$G$*$+$7$J7k2L$rI=<($9$k$+$b$7$l$^$;$s(B
$B$N$G!"Cm0U$7$F2<$5$$!#$=$&$J$k$3$H$rKI$0$h$&$K$O$7$F$"$j$^$;$s!#(BBashprompt
$B$G$h$/MQ$$$i$l$F$$$k(B(Word Perfect $B$G$J$8$_$K$J$C$?(B)$B7S@~$d;M3Q$NJ8;z$O!"(B
8$B?J?t(B260$B$+$i(B337$B$K$"$j$^$9!#(B
<P>
<HR>
<PRE>
#!/bin/bash

#   Script: escgen

function usage {
   echo -e "\033[1;34mescgen\033[0m &lt;lower_octal_value&gt; [&lt;higher_octal_value&gt;]"
   echo "   8$B?J?t%(%9%1!<%W%7!<%1%s%9%8%'%M%l!<%?!<(B:$B2<8B$NCM$+$i>e8B$NCM$^$G$N(B"
   echo "   $B$9$Y$F$N(B8$B?J?t%(%9%1!<%W%7!<%1%s%9$rI=<($7$^$9!#$b$7!"(B2$BHVL\$N>e8B$N(B"
   echo "   $BCM$,M?$($i$l$J$1$l$P!"(B8$B8D$NJ8;z$,I=<($5$l$^$9!#(B"
   echo "   1998 - Giles Orr, no warranty."
   exit 1
}

if [ "$#" -eq "0" ]
then
   echo -e "\033[1;31mPlease supply one or two values.\033[0m"
   usage
fi
let lower_val=${1}
if [ "$#" -eq "1" ]
then
   #   $B$b$7>e8BCM$,M?$($i$l$J$$>l9g$O!"(B8$B8D$K$9$k!#(B
   upper_val=$(echo -e "obase=8 \n ibase=8 \n $lower_val+10 \n quit" | bc)
else
   let upper_val=${2}
fi
if [ "$#" -gt "2" ]
then 
   echo -e "\033[1;31mPlease supply two values.\033[0m"
   echo
   usage
fi
if [ "${lower_val}" -gt "${upper_val}" ]
then
   echo -e "\033[1;31m${lower_val} is larger than ${upper_val}."
   echo
   usage
fi
if [ "${upper_val}" -gt "777" ]
   then
   echo -e "\033[1;31mValues cannot exceed 777.\033[0m"
   echo
   usage
fi

let i=$lower_val
let line_count=1
let limit=$upper_val
while [ "$i" -lt "$limit" ]
do
   octal_escape="\\$i"
   echo -en "$i:'$octal_escape' "
   if [ "$line_count" -gt "7" ]
   then 
      echo
      #   Put a hard return in.
      let line_count=0
   fi
   let i=$(echo -e "obase=8 \n ibase=8 \n $i+1 \n quit" | bc)
   let line_count=$line_count+1
done
echo
</PRE>
<HR>
<P>
<P><B>xfd</B> $B$r;H$C$F(B X $B%U%)%s%H$K4^$^$l$k$9$Y$F$NJ8;z$rI=<($9$k$3$H$b(B
$B$G$-$^$9!#(B
$B%3%^%s%I$O!"(B"xfd -fn &lt;fontname&gt;"$B$G$9!#$"$kJ8;z$N>e$G%/%j%C%/$9$k$H!"(B
$B$=$N(B8$B?JK!$G$NCM$r4^$a!"$=$NJ8;z$K4X$9$kMM!9$J>pJs$,F@$i$l$^$9!#>e$N%9%/%j%W%H(B
$B$O!"%3%s%=!<%k>e$G8=:_$N%U%)%s%HL>$,J,$+$i$J$$;~$KLr$KN)$D$G$7$g$&!#(B
<P>
<HR>
<A HREF="Bash-Prompt-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Bash-Prompt-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Bash-Prompt-HOWTO.html#toc6">$BL\<!$X(B</A>
</BODY>
</HTML>