[CentOS] Strange behavior from grep

2008-03-28 Thread Mário Gamito
Hi, It's been a long time since I've been noticing a strange behaviour from CentOS grep command. But today, I really need it. I have a file that has the word gamito inside of it. If I run $ grep 'gamito' file it returns nothing. Yet, if I run $ grep -c 'gamito' file It returns 1 which is

Re: [CentOS] Strange behavior from grep

2008-03-28 Thread Mário Gamito
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

Re: [CentOS] Strange behavior from grep

2008-03-28 Thread Steve Huff
On Mar 28, 2008, at 9:37 AM, Mário Gamito wrote: Well, my question now is, how do I get the word 'gamito' alone from the file ? grep -o 'gamito' file -steve -- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v

Re: [CentOS] Strange behavior from grep

2008-03-28 Thread Jacques B.
On Fri, Mar 28, 2008 at 9:37 AM, Mário Gamito [EMAIL PROTECTED] 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

Re: [CentOS] Strange behavior from grep

2008-03-28 Thread Bob Beers
On Fri, Mar 28, 2008 at 9:37 AM, Mário Gamito [EMAIL PROTECTED] wrote: Well, my question now is, how do I get the word 'gamito' alone from the file ? Any help would be appreciated. What are you really trying to do? grep 'gamito' file and grep -c 'gamito' file will tell you if it is

Re: [CentOS] Strange behavior from grep

2008-03-28 Thread Toby Bluhm
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