[CentOS] Strange behavior from grep

Fri Mar 28 13:37:43 UTC 2008
Mário Gamito <gamito at gmail.com>

Hi,

Thank you for your answer.

After a little more research, I found out that the line containing the
word 'gamito' is huge and yet it scrolls so fast in the screen that I
can barely see it.

I tried redirecting the output of the grep to a file and that huge
line went in to it.

So, I've tried a double grep:

$ grep 'gamito' file | grep 'gamito'

but without success.

Well, my question now is, how do I get the word 'gamito' alone from the file ?

Any help would be appreciated.

Warm Regards,
Mário Gamito

On Fri, Mar 28, 2008 at 1:27 PM, Dan Halbert <halbert at everyzing.com> wrote:
>
>  >
>  > If I run
>  > $ grep 'gamito' file
>  >
>  What is the return status (echo ??). If you had a file with
>  "gamito\r       " then it would print what looked like a blank line, I
>  think. So is this maybe a Mac file? Which version of grep, etc., etc. Do
>  "where grep".
>
>
> > it returns nothing. Yet, if I run
>  > $ grep -c 'gamito' file
>  >
>  > It returns 1 which is right.
>  >
>
>