05-24-06 06:16 PM
On 23 May 2006 09:55:06 -0700, blackdog wrote:
> I use grep, it work just fine on all of my systems sun Solaris, but on
> one particully system it alwyas hang. The system I built as other
> system, there is no different from other systems I have.
> It seems that the grep command grep the first file then hang. It could
> not grep the string for
> next file. The command I use as below:
>
> grep xxx *
>
> grep all of file in the same directory.
>
> Please shed a light.
[...]
There may exist a file called "-" in the current directory. For
some grep implementations, "-" means stdin, so grep will look
for xxx on its standard input instead of from the file called
"-".
In anycase, you should always mark the end of options, as some
files may as well be called "-F" or "-x"...
grep xxx -- *
or
grep xxx ./*
--
Stephane
[ Post a follow-up to this message ]
|