CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 04:10:08 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090210090750
location: https://web.archive.org/web/20090210090750/https://examples.oreilly.com/upt2/split/manindex
server-timing: captures_list;dur=0.479035, exclusion.robots;dur=0.013370, exclusion.robots.policy;dur=0.005879, esindex;dur=0.008857, cdx.remote;dur=21.479640, LoadShardBlock;dur=279.753787, PetaboxLoader3.datanode;dur=87.506622, PetaboxLoader3.resolve;dur=174.082901
x-app-server: wwwb-app224
x-ts: 302
x-tr: 321
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app224; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 17 Jul 2025 04:10:08 GMT
content-type: text/plain
content-length: 977
x-archive-orig-date: Tue, 10 Feb 2009 09:07:50 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 18:10:12 GMT
x-archive-orig-etag: "6b1ebb-3d1-90194900"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 977
x-archive-orig-connection: close
cache-control: max-age=1800
x-archive-guessed-content-type: text/plain
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 10 Feb 2009 09:07:50 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 19 Jun 2002 01:50:26 GMT", ; rel="prev memento"; datetime="Sun, 18 May 2008 20:45:36 GMT", ; rel="memento"; datetime="Tue, 10 Feb 2009 09:07:50 GMT", ; rel="next memento"; datetime="Wed, 30 Sep 2015 17:26:39 GMT", ; rel="last memento"; datetime="Fri, 25 Mar 2016 03:27:02 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090210075601_crawl103-c/52_8_20090210090728_crawl100.arc.gz
server-timing: captures_list;dur=0.474755, exclusion.robots;dur=0.019774, exclusion.robots.policy;dur=0.009868, esindex;dur=0.010477, cdx.remote;dur=27.930418, LoadShardBlock;dur=144.301079, PetaboxLoader3.datanode;dur=126.023723, PetaboxLoader3.resolve;dur=82.920402, load_resource;dur=105.951514
x-app-server: wwwb-app224
x-ts: 200
x-tr: 302
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
accept-ranges: bytes
#!/bin/sh
# manindex: Generate a list of topic lines that you can grep through.
# Then create 'apropos' and other aliases to search the list.
# Run this periodically--once a month should suffice
mandir=/usr/share/man # where the manual pages are stored
manlist="cat1 cat2 cat3" # list particular directories you care about
indexfile="/home/mike/manindex.txt"
rm -f $indexfile
for directory in $manlist
do
cd $mandir/$directory
# the sed command turns filenames into "manual page" names
# e.g., converts sed.1.z to sed.
# BUG: won't handle names like a.out.4.Z correctly
for manpage in `ls | sed -e 's/\..*$//g'`
do
# use man to unpack the manual page; it might be compressed
# use col to strip garbage characters
# egrep looks for spaces, manual page name, and dash
man $manpage | col -b -x | egrep "^ +$manpage.* - " | uniq
done
done > $indexfile