CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 04:14:02 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090210094421
location: https://web.archive.org/web/20090210094421/https://examples.oreilly.com/upt2/split/cgrep.sed
server-timing: captures_list;dur=0.591867, exclusion.robots;dur=0.020128, exclusion.robots.policy;dur=0.008676, esindex;dur=0.011694, cdx.remote;dur=13.175499, LoadShardBlock;dur=287.445458, PetaboxLoader3.datanode;dur=91.759950, PetaboxLoader3.resolve;dur=175.788689
x-app-server: wwwb-app219
x-ts: 302
x-tr: 329
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: SERVER=wwwb-app219; 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:14:03 GMT
content-type: text/plain
content-length: 946
x-archive-orig-date: Tue, 10 Feb 2009 09:44:21 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 18:10:12 GMT
x-archive-orig-etag: "1bac18-3b2-90194900"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 946
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:44:21 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 26 Apr 2002 15:58:40 GMT", ; rel="prev memento"; datetime="Sun, 18 May 2008 20:43:32 GMT", ; rel="memento"; datetime="Tue, 10 Feb 2009 09:44:21 GMT", ; rel="next memento"; datetime="Thu, 09 Sep 2010 16:36:49 GMT", ; rel="last memento"; datetime="Fri, 25 Mar 2016 03:06:08 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_20090210094331_crawl100.arc.gz
server-timing: captures_list;dur=1.076449, exclusion.robots;dur=0.034688, exclusion.robots.policy;dur=0.015700, esindex;dur=0.026964, cdx.remote;dur=17.069068, LoadShardBlock;dur=275.816575, PetaboxLoader3.resolve;dur=244.417960, PetaboxLoader3.datanode;dur=88.158462, load_resource;dur=200.185984
x-app-server: wwwb-app219
x-ts: 200
x-tr: 526
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
# cgrep - context grep via sed
# Written by Greg Ubben, DoD, 10 Dec 1993
#
# Cgrep finds all occurrences of in , showing
# additional lines of context above and below each occurrence.
# must be at least 1, and defaults to 2. Each new block of context is
# preceded by the line number of the first occurrence within that block.
# must be a grep-style regular expression, except that you can
# match across lines, so use "\nWORD" vs "^WORD" and "WORD\n" vs "WORD$".
#
# The following example will find all occurrences of the word "five" where
# it is followed by the word "seven" somewhere within the next 3 lines:
# cgrep -3 "five.*seven"
USAGE="$0 [-context] pattern [file...]"
n=3
case $1 in -[1-9]*)
n=`expr 1 - "$1"`
shift
esac
re=${1?}; shift
sed -n "
1b start
: top
\~$re~{
h; n; p; H; g
b endif
}
N
: start
//{ =; p; }
: endif
$n,\$D
b top
" "$@"