CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 16 Jul 2025 21:23:57 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090210090510
location: https://web.archive.org/web/20090210090510/https://examples.oreilly.com/upt2/split/getmac
server-timing: captures_list;dur=0.530899, exclusion.robots;dur=0.023943, exclusion.robots.policy;dur=0.015216, esindex;dur=0.011591, cdx.remote;dur=5.285223, LoadShardBlock;dur=1101.489562, PetaboxLoader3.resolve;dur=954.554114, PetaboxLoader3.datanode;dur=100.243366
x-app-server: wwwb-app202
x-ts: 302
x-tr: 1128
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: SERVER=wwwb-app202; 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: Wed, 16 Jul 2025 21:23:58 GMT
content-type: text/plain
content-length: 1217
x-archive-orig-date: Tue, 10 Feb 2009 09:05:10 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 18:10:12 GMT
x-archive-orig-etag: "2272b2-4c1-90194900"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 1217
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:05:10 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 14 Jan 2003 02:04:06 GMT", ; rel="prev memento"; datetime="Sun, 18 May 2008 20:31:23 GMT", ; rel="memento"; datetime="Tue, 10 Feb 2009 09:05:10 GMT", ; rel="next memento"; datetime="Wed, 30 Sep 2015 16:40:07 GMT", ; rel="last memento"; datetime="Fri, 25 Mar 2016 03:19:37 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_20090210090438_crawl100.arc.gz
server-timing: captures_list;dur=0.618938, exclusion.robots;dur=0.029078, exclusion.robots.policy;dur=0.017543, esindex;dur=0.013199, cdx.remote;dur=65.067624, LoadShardBlock;dur=231.298810, PetaboxLoader3.datanode;dur=146.627000, PetaboxLoader3.resolve;dur=231.795163, load_resource;dur=212.939265
x-app-server: wwwb-app202
x-ts: 200
x-tr: 536
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
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
# getmac - get a *roff macro definition
# Usage: getmac -package macro
case $1 in
-mm) file="/usr/lib/macros/mmt";;
-ms) file="/usr/lib/tmac/tmac.s";;
-me) file="/usr/lib/tmac/tmac.e";;
-man) file="/usr/lib/tmac/tmac.an";;
*) echo "Usage: getmac -package macro" 1>&2; exit 1;;
esac
mac=$2
# Have sed search text without printing until it finds a line starting with
# ".de", optional spaces, and the macro name (passed in from the $mac shell
# variable, which is outside the quotes). From there until the closing
# "..", do the commands inside the braces:
# - the first command happens at the .de line; it prints a three-line *roff
# comment with the macro package and filename (which the shell inserts
# because they're outside quotes).
# - print all lines of the macro definition
# - make sed quit after the closing ".." is printed. This won't show
# any subsequent re-definition of the macro in the same file. But
# that isn't likely to happen, so this saves time because sed doesn't
# have to waste time reading the rest of the macro file.
sed -n '
/^\.de *'$mac'/,/^\.\.$/ {
/^\.de/i\
.\\"\
.\\" The following definition of '$mac' was found in '$file':\
.\\"
p
/^\.\.$/q
}' $file