tail / grep
Mike Ballon
calzonie at hawaii.rr.com
Thu Nov 16 11:48:28 PST 2000
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