I want to compare the speed of these two commands:
grep pattern1 files*
grep pattern2 files*
Unfortunately, the first grep reads much of files* into memory buffers, so the second grep runs very quickly, but for the wrong reason.
How do I tell Linux (Fedora 11): "please stop caching disk reads because I'm testing something."