CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 07 Aug 2025 02:57:38 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080518204856
location: https://web.archive.org/web/20080518204856/https://examples.oreilly.com/upt2/split/xgrep
server-timing: captures_list;dur=0.501892, exclusion.robots;dur=0.018885, exclusion.robots.policy;dur=0.008577, esindex;dur=0.009935, cdx.remote;dur=15.875479, LoadShardBlock;dur=275.668871, PetaboxLoader3.datanode;dur=59.937714, PetaboxLoader3.resolve;dur=134.967668
x-app-server: wwwb-app224
x-ts: 302
x-tr: 317
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-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, 07 Aug 2025 02:57:38 GMT
content-type: text/plain
content-length: 401
x-archive-orig-date: Sun, 18 May 2008 20:48:54 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 18:10:12 GMT
x-archive-orig-etag: "54c440-191-90194900"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 401
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: Sun, 18 May 2008 20:48:56 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 18 Jun 2002 23:20:26 GMT", ; rel="prev memento"; datetime="Tue, 16 Oct 2007 16:22:40 GMT", ; rel="memento"; datetime="Sun, 18 May 2008 20:48:56 GMT", ; rel="next memento"; datetime="Tue, 10 Feb 2009 09:06:32 GMT", ; rel="last memento"; datetime="Fri, 25 Mar 2016 02:59:20 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_3_20080518193113_crawl107-c/52_3_20080518204733_crawl100.arc.gz
server-timing: captures_list;dur=0.478791, exclusion.robots;dur=0.016442, exclusion.robots.policy;dur=0.006521, esindex;dur=0.010256, cdx.remote;dur=9.157019, LoadShardBlock;dur=106.019741, PetaboxLoader3.datanode;dur=280.256931, load_resource;dur=318.488833, PetaboxLoader3.resolve;dur=85.609827
x-app-server: wwwb-app224
x-ts: 200
x-tr: 458
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
# xgrep - print just the matches on separate lines
# Written by Greg Ubben, DoD, 3 Feb 1994
if [ $# -eq 0 ]; then
echo "Usage: $0 pattern [file...]" >&2
exit 2
fi
re=$1; shift
x=`echo \\\02` # unlikely ^B will occur in the input
#x=`echo 2 | tr 2 \\\02` # use if your echo doesn't change \02 to ^B
sed "
\\$x$re$x!d
s//$x&$x/g
s/[^$x]*$x//
s/$x[^$x]*$x/\\
/g
s/$x.*//
" "$@"