Newsgroups: comp.unix.wizards Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: File checker: A summary Message-ID: <1988Jul24.005431.24360@utzoo.uucp> Organization: U of Toronto Zoology References: <16608@brl-adm.ARPA> Date: Sun, 24 Jul 88 00:54:31 GMT In article <16608@brl-adm.ARPA> dsill@nswc-oas.arpa (Dave Sill) writes: >1) Two people suggested short awk/ls/diff-based scripts. For my >purposes, this is inadequate. I need to check about 1500 files and >any form of shell script would just be too slow. Did you try it? It ain't necessarily so. Ignoring the annoying problem of argument lists being too long, this should be ls -... lotsafiles | awk '...' | diff - whatitoughttobe which ought to be amply fast unless you're running this thing every five minutes. Kind of academic since you do have a C solution, but automatically dismissing shell-and-filters solutions as "too slow" is a sign of ignorance. Well-done shell programs are often fast enough. -- MSDOS is not dead, it just | Henry Spencer at U of Toronto Zoology smells that way. | uunet!mnetor!utzoo!henry henry@zoo.toronto.edu