Subject: Re: funny grep
To: Andrew Wheadon <>
From: Michael L. VanLoon -- <>
List: current-users
Date: 04/18/1996 14:57:35
>In article <> andrew@wipux2.w (Andrew Wheadon) writes:
>><root@wipux2:~> grep -v [a-z] /etc/passwd
>>tftp:*:113:32766:Trivial Ftp:/:/dev/null

>>Why is grep outputting the 'tftp' line ?

>[a-z] gets expanded by the shell to a file in the current working directory
>with a single lower case letter filename. 

To clarify this for yourself, replace the "grep -v" in that line with

	echo [a-z] /etc/passwd

Make sure you're in the same directory as you where when you grepped.

  Michael L. VanLoon                       
        --<  Free your mind and your machine -- NetBSD free un*x  >--
    NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3,
               Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX...
    NetBSD ports in progress: PICA, others...