/usr/share/doc/HOWTO/ja-html/Bzip2-5.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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Bzip2 Howto: less¤Çbzip2¤ò»È¤¦</TITLE>
<LINK HREF="Bzip2-6.html" REL=next>
<LINK HREF="Bzip2-4.html" REL=previous>
<LINK HREF="Bzip2.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="Bzip2-6.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Bzip2-4.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Bzip2.html#toc5">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="less"></A> <A NAME="s5">5. less¤Çbzip2¤ò»È¤¦</A></H2>
<P>bzip2¥Õ¥¡¥¤¥ë¤ò¤¹¤°¤ËŸ³«¤¹¤ë¤¿¤á¤Ë¡¢Î㤨¤Ð¤Ï¤¸¤á¤Ëbunzip2¤ò»È¤ï¤º
"less"¤ò»È¤¦¤¿¤á¤Ë¡¢"<CODE>lesspipe.sh</CODE>"¤ò
ºî¤ê¤Þ¤¹(less¤Îman¥Ú¡¼¥¸»²¾È)¡§
<HR>
<PRE>
#!/bin/sh
# This is a preprocessor for 'less'. It is used when this environment
# variable is set: LESSOPEN="|lesspipe.sh %s"
case "$1" in
*.tar) tar tvvf $1 2>/dev/null ;; # View contents of .tar and .tgz files
*.tgz) tar tzvvf $1 2>/dev/null ;;
*.tar.gz) tar tzvvf $1 2>/dev/null ;;
*.tar.Z) tar tzvvf $1 2>/dev/null ;;
*.tar.z) tar tzvvf $1 2>/dev/null ;;
*.bz2) bzip2 -dc $1 2>/dev/null ;; # View compressed files correctly
*.Z) gzip -dc $1 2>/dev/null ;;
*.z) gzip -dc $1 2>/dev/null ;;
*.gz) gzip -dc $1 2>/dev/null ;;
*.zip) unzip -l $1 2>/dev/null ;;
*.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.n|*.man) FILE=`file -L $1` ; # groff src
FILE=`echo $FILE | cut -d ' ' -f 2`
if [ "$FILE" = "troff" ]; then
groff -s -p -t -e -Tascii -mandoc $1
fi ;;
*) cat $1 2>/dev/null ;;
# *) FILE=`file -L $1` ; # Check to see if binary, if so -- view with 'strings'
# FILE1=`echo $FILE | cut -d ' ' -f 2`
# FILE2=`echo $FILE | cut -d ' ' -f 3`
# if [ "$FILE1" = "Linux/i386" -o "$FILE2" = "Linux/i386" \
# -o "$FILE1" = "ELF" -o "$FILE2" = "ELF" ]; then
# strings $1
# fi ;;
esac
</PRE>
<HR>
<P>(ÌõÃí¡§´Ä¶ÊÑ¿ôLESSOPEN¤òÀßÄꤷ¤Æ¤ª¤¤Þ¤¹)
<P>
<P>
<P>
<HR>
<A HREF="Bzip2-6.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Bzip2-4.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Bzip2.html#toc5">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|