[CentOS] Strange behavior from grep

Fri Mar 28 14:08:24 UTC 2008
Toby Bluhm <tkb at midwestinstruments.com>

Mário Gamito wrote:
> 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 ?
>
>   

Perhaps try to chop the line down to size by using fold or split.



-- 
Toby Bluhm
Alltech Medical Systems America, Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240