tail / grep
Chris Wong
wongc at math.ed.hawaii.edu
Thu Nov 16 12:09:41 PST 2000
On Thu, 16 Nov 2000, Mike Ballon wrote:
> Here's a good one:
>
> tail -f /var/log/squid/access.log | grep -f /etc/Sex.txt > /tmp/busted.txt
>
> The tail part of the command runs, the grep runs (-f read from file) but I can
> not get it to output to the /tmp/bustex.txt file to save my life and I can't
> figure out why. Without using the redirection at the end the results of the
> grep are displayed on the crt no problem.
>
> What I'm thinking is that the grep -f puts the command in a loop and it never
> gets to the > redirect portion, you think?
More information about the LUAU
mailing list