CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 21:01:24 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090210094428
location: https://web.archive.org/web/20090210094428/https://examples.oreilly.com/upt2/split/cls
server-timing: captures_list;dur=0.752179, exclusion.robots;dur=0.029039, exclusion.robots.policy;dur=0.012461, esindex;dur=0.016129, cdx.remote;dur=77.186925, LoadShardBlock;dur=388.429169, PetaboxLoader3.datanode;dur=241.547268
x-app-server: wwwb-app220
x-ts: 302
x-tr: 496
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app220; 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 21:01:25 GMT
content-type: text/plain
content-length: 1282
x-archive-orig-date: Tue, 10 Feb 2009 09:44:28 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 18:10:12 GMT
x-archive-orig-etag: "1bac20-502-90194900"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 1282
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:28 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 22 May 2002 16:48:43 GMT", ; rel="prev memento"; datetime="Sun, 18 May 2008 20:43:58 GMT", ; rel="memento"; datetime="Tue, 10 Feb 2009 09:44:28 GMT", ; rel="next memento"; datetime="Wed, 30 Sep 2015 17:28:13 GMT", ; rel="last memento"; datetime="Fri, 25 Mar 2016 02:57:22 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.411157, exclusion.robots;dur=0.044437, exclusion.robots.policy;dur=0.019511, esindex;dur=0.024991, cdx.remote;dur=28.013449, LoadShardBlock;dur=350.788116, PetaboxLoader3.datanode;dur=156.297496, PetaboxLoader3.resolve;dur=284.632547, load_resource;dur=140.848836
x-app-server: wwwb-app220
x-ts: 200
x-tr: 552
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
### clf,cls,clf2,cls2 - compressed "ls" and "ls -F" directory listings
### Usage: cmd [dirs]
# To install the program, put it in an executable file named \fIcls\fP.
# Then make three links to it:
#
# % chmod 755 cls
# % ln cls clf
# % ln cls cls2
# % ln cls clf2
# UNCOMMENT THE RIGHT ONE FOR YOUR SYSTEM:
ls='/bin/ls -1' # BSD
#ls='/bin/ls' # Sys V
temp=/tmp/CLS$$ # TEMP FILE
umask 077 # MAKE TEMP FILE PRIVATE
# pr PROGRAM: MAKE 5 COLUMNS, NO HEADING, 78 COLUMNS WIDE:
pr='pr -5 -t -w78'
# sed SCRIPT: IF LINE IS OVER 14 CHARACTERS AND ENDS WITH SYMBOL
# "*", "/", "@", OR "=", TRUNCATE AFTER 12 AND REPLACE WITH >SYMBOL...
# OTHERWISE, IF NAME IS OVER 14 CHARACTERS, TRUNCATE AFTER 13; ADD A >
sed='/[/@*=]$/s/^\(............\)...*\([/@*=][/@*=]*\)$/\1>\2/
s/^\(.............\)...*/\1>/'
case "$0" in
*clf2) $ls -F ${1+"$@"} | sed -e "$sed" | $pr -l1; exit ;;
*cls2) $ls ${1+"$@"} | sed -e "$sed" | $pr -l1; exit ;;
*clf) $ls -F ${1+"$@"} | sed -e "$sed" > $temp ;;
*cls) $ls ${1+"$@"} | sed -e "$sed" > $temp ;;
*) echo "$0: Help! Shouldn't get here!"; exit 1 ;;
esac
# (THESE COMMANDS ONLY DONE BY cls AND clf.)
# LENGTH OF LISTING = ( number of files / 5 ) + 1
$pr -l`expr \( \`wc -l < $temp\` / 5 \) + 1` $temp
rm -f $temp