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
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
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
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
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
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
6 matches
Mail list logo