CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 16 Jul 2025 04:17:39 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090210084841
location: https://web.archive.org/web/20090210084841/https://examples.oreilly.com/upt2/split/lensort
server-timing: captures_list;dur=0.528086, exclusion.robots;dur=0.018040, exclusion.robots.policy;dur=0.007352, esindex;dur=0.012491, cdx.remote;dur=9.062525, LoadShardBlock;dur=366.076654, PetaboxLoader3.resolve;dur=192.796215, PetaboxLoader3.datanode;dur=102.265194
x-app-server: wwwb-app218
x-ts: 302
x-tr: 399
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app218; 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 04:17:40 GMT
content-type: text/plain
content-length: 422
x-archive-orig-date: Tue, 10 Feb 2009 08:48:41 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 18:10:12 GMT
x-archive-orig-etag: "2272bb-1a6-90194900"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 422
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 08:48:41 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 26 Apr 2002 15:52:40 GMT", ; rel="prev memento"; datetime="Sun, 18 May 2008 20:45:06 GMT", ; rel="memento"; datetime="Tue, 10 Feb 2009 08:48:41 GMT", ; rel="next memento"; datetime="Wed, 30 Sep 2015 16:38:45 GMT", ; rel="last memento"; datetime="Fri, 25 Mar 2016 03:19:42 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_20090210084753_crawl100.arc.gz
server-timing: captures_list;dur=0.717023, exclusion.robots;dur=0.029119, exclusion.robots.policy;dur=0.010664, esindex;dur=0.013132, cdx.remote;dur=5.757749, LoadShardBlock;dur=272.110244, PetaboxLoader3.datanode;dur=83.713574, PetaboxLoader3.resolve;dur=208.687179, load_resource;dur=97.777111
x-app-server: wwwb-app218
x-ts: 200
x-tr: 402
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
#
### lensort - sort by line length
### Usage: lensort [files]
# print each line's length, a TAB and then the actual line.
# By default, awk can run out of fields on long lines;
# setting FS=RS, to make each line one long field, can help.
awk 'BEGIN { FS=RS }
{ print length, $0 }' $* |
# Sort the lines numerically
sort +0n -1 |
# Remove the length and the space and print each line
sed 's/^[0-9][0-9]* //'