CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 31 Jul 2025 04:45:51 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090210090544
location: https://web.archive.org/web/20090210090544/https://examples.oreilly.com/upt2/split/nom
server-timing: captures_list;dur=0.453096, exclusion.robots;dur=0.019329, exclusion.robots.policy;dur=0.009976, esindex;dur=0.009619, cdx.remote;dur=8.446109, LoadShardBlock;dur=312.901180, PetaboxLoader3.datanode;dur=55.940662, PetaboxLoader3.resolve;dur=111.230208
x-app-server: wwwb-app219
x-ts: 302
x-tr: 343
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
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, 31 Jul 2025 04:45:52 GMT
content-type: text/plain
content-length: 1190
x-archive-orig-date: Tue, 10 Feb 2009 09:05:44 GMT
x-archive-orig-server: Apache
x-archive-orig-last-modified: Mon, 31 Mar 2008 18:10:12 GMT
x-archive-orig-etag: "6b1ec3-4a6-90194900"
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 1190
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:05:44 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 19 Jun 2002 01:56:13 GMT", ; rel="prev memento"; datetime="Sun, 18 May 2008 20:46:02 GMT", ; rel="memento"; datetime="Tue, 10 Feb 2009 09:05:44 GMT", ; rel="next memento"; datetime="Wed, 30 Sep 2015 16:38:40 GMT", ; rel="last memento"; datetime="Fri, 25 Mar 2016 03:07:10 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_20090210090438_crawl100.arc.gz
server-timing: captures_list;dur=0.481803, exclusion.robots;dur=0.019448, exclusion.robots.policy;dur=0.009051, esindex;dur=0.010949, cdx.remote;dur=86.284760, LoadShardBlock;dur=136.593074, PetaboxLoader3.datanode;dur=172.391506, load_resource;dur=251.503235, PetaboxLoader3.resolve;dur=47.811233
x-app-server: wwwb-app219
x-ts: 200
x-tr: 497
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
#
### nom - return names of non-matching files from current directory
### Usage: nom files (example: lpr `nom *.ms`)
##
## nom TAKES FILENAMES (USUALLY, EXPANDED BY THE SHELL) FROM ITS COMMANDLINE.
## IT OUTPUTS ALL FILENAMES IN THE CURRENT DIRECTORY THAT *DON'T* MATCH.
## NOTE: nom DOESN'T KNOW ABOUT FILES WHOSE NAMES BEGIN WITH "."
##
## EXAMPLES:
## TO GET THE NAMES OF ALL FILES THAT *DON'T* END WITH ".ms":
## % nom *.ms
## TO EDIT ALL FILES WHOSE NAMES DON'T HAVE ANY LOWER-CASE LETTERS:
## % vi `nom *[a-z]*`
## TO COPY ALL FILES TO A DIRECTORY NAMED Backup (EXCEPT Backup ITSELF):
## % cp `nom Backup` Backup
temp=/tmp/NOM$$
stat=1 # ERROR EXIT STATUS (SET TO 0 BEFORE NORMAL EXIT)
trap 'rm -f $temp; exit $stat' 0 1 2 15
# MUST HAVE AT LEAST ONE ARGUMENT, AND ALL HAVE TO BE IN CURRENT DIRECTORY:
case "$*" in
"") echo Usage: `basename $0` pattern 1>&2; exit ;;
*/*) echo "`basename $0` quitting: I can't handle '/'s." 1>&2; exit ;;
esac
# GET FILENAMES WE DON'T WANT TO MATCH; REPLACE BLANKS WITH NEWLINES:
echo "$*" | tr ' ' '\012' | sort > $temp
# COMPARE TO CURRENT DIRECTORY (-1 = ONE NAME PER LINE); OUTPUT NAMES WE WANT:
ls -1 | comm -23 - $temp
stat=0