[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Simple Unix utility?

"Scott K. Ellis" <storm@gate.net> writes:

> > I was wondering if there was a commonly used method for doing the
> > same thing, but filtering it at the same time.
> Umm, you had the right idea when using tail -f.  Try
> tail -f <file> | grep <pattern>

For some dumb reason, I didn't think I could do a pipe out of "tail -f". 

Boy, do I feel stupid.  :-)

Now I notice that "cut" seems to buffer everything up.

$ tail -f /opt/linuxhq/livesite/var/log/access.log |  grep -v "gif" | cut -c1-175

Is there another way around that?


 - Jim

Attachment: pgphtgHypSjc_.pgp
Description: PGP signature

Reply to: