CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 14:38:17 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090210084054
location: https://web.archive.org/web/20090210084054/https://examples.oreilly.com/upt2/split/count_types
server-timing: captures_list;dur=0.528960, exclusion.robots;dur=0.023037, exclusion.robots.policy;dur=0.011379, esindex;dur=0.012947, cdx.remote;dur=27.950605, LoadShardBlock;dur=358.646309, PetaboxLoader3.resolve;dur=139.890570, PetaboxLoader3.datanode;dur=109.992115
x-app-server: wwwb-app210
x-ts: 302
x-tr: 409
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app210; 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 14:38:18 GMT
content-type: text/plain
content-length: 487
x-archive-orig-date: Tue, 10 Feb 2009 08:40:54 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 18:10:12 GMT
x-archive-orig-etag: "fb3e15-1e7-90194900"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 487
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:40:54 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 18 Aug 2002 00:58:00 GMT", ; rel="prev memento"; datetime="Sun, 18 May 2008 20:30:19 GMT", ; rel="memento"; datetime="Tue, 10 Feb 2009 08:40:54 GMT", ; rel="next memento"; datetime="Wed, 30 Sep 2015 16:40:33 GMT", ; rel="last memento"; datetime="Fri, 25 Mar 2016 03:18: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_20090210084027_crawl100.arc.gz
server-timing: captures_list;dur=0.795772, exclusion.robots;dur=0.034336, exclusion.robots.policy;dur=0.015954, esindex;dur=0.015134, cdx.remote;dur=67.252437, LoadShardBlock;dur=461.546849, PetaboxLoader3.datanode;dur=301.490190, load_resource;dur=283.630783, PetaboxLoader3.resolve;dur=148.746721
x-app-server: wwwb-app210
x-ts: 200
x-tr: 846
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
#
# usage: count_types [directory ...]
# counts how many files there are of each type in a specified
# directory (defaults to the current directory).
#
# Uses an associative array to keep track of the # of files per type
# Print out in the format `#_of_files file_type' for each type of file
find ${*-.} -type f -print | xargs file | awk -F: '
{
t[$2]++;
}
END {
for (i in t) printf("%d\t%s\n", t[i],i);
}' | sort -nr # Sort the result by numeral, in reverse