Subject: Re: funny grep
To: Andrew Wheadon <>
From: Roland C Dowdeswell <>
List: current-users
Date: 04/18/1996 02:41:23
On 829745495 seconds since the Beginning of the UNIX epoch Andrew Wheadon wrote:

>bugs:*:101:100:Bug Filer:/home/hiwis/bugs:/bin/go
>x11:*:102:100:Mr. X:/home/hiwis/x11:/bin/go
>lp:*:110:32766:Max Hit Lp:/var/spool/laser1:/bin/go
>tftp:*:113:32766:Trivial Ftp:/:/dev/null
>ftp:*:200:32766:Anonymous Ftp,,,:/mit/ftp:/dev/null
>anon:*:200:32766:Anonymous Sup,,,:/mit/ftp/pub/NetBSD:/dev/null
>httpd:*:202:40:Humpty Dumpty:/usr/local/etc/httpd:/dev/null

><root@wipux2:~> grep -v [a-z] /etc/passwd
>tftp:*:113:32766:Trivial Ftp:/:/dev/null

what is in the current directory when you execute the
command?  Or better as a question --

Is the [a-z] being globbed by your shell, into
say an o, which is contained in every line, except
the tftp one?

>Why is grep outputting the 'tftp' line ?
>The cost of living hasn't affected it's popularity. (Mark Twain)
>current	release=doc \ "NetBSD-current mirror"
>hostbase=/mit/ftp/pub/NetBSD base=/usr prefix=/usr backup delete use-rel-suffix

/* Roland C Dowdeswell