[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mention grep on directories will never find anything
From: |
Thomas Schwinge |
Subject: |
Re: mention grep on directories will never find anything |
Date: |
Sat, 9 Jun 2007 14:43:22 +0200 |
User-agent: |
Mutt/1.5.11 |
Hello!
On Sat, Jun 09, 2007 at 07:13:26PM +0800, address@hidden wrote:
> At this point perhaps mention that
> $ grep . /
> $
> nothing will ever be found, pcregrep too.
#v+
$ grep . /
Binary file / matches
#v-
> And mention why you don't say like
> $ cat /
> cat: /: Is a directory
> (Probably POSIX or something.)
> grep (GNU grep) 2.5.1
#v+
$ cat / | od -t a | head -n 3
0000000 stx nul nul nul ff nul soh nul . nul nul nul stx nul nul nul
0000020 ff nul stx nul . . nul nul vt nul nul nul dc4 nul nl nul
0000040 l o s t + f o u n d nul nul O eot nul nul
#v-
#v+
$ uname -a
GNU flubber 0.3 GNU-Mach 1.3.99/Hurd-0.3 i686-AT386 GNU
#v-
Regards,
Thomas
signature.asc
Description: Digital signature