Grep running extremely slow on Mountain Lion. What has happened to it?
I upgraded to Mountain Lion (MacBook Pro Mid 2010, 4Gb Ram, 2.66GHz) recently. The upgrade went fine and the system is running well in general.
However, I previously used grep (with -x or -w) in terminal to take a file of patterns and pull matching lines out of another file. As in 'grep -F -x -f patternfile basefile > outputfile'. Both files are admittedly very large (20,000 - 30,000 rows). However, under Snow Leopard, this would take about a minute. Under Mountain Lion, it is taking hours! I mean literally hours!
Has anybody else had this problem? Is there anyway to fix it? I handle huge files like this all the time and I'd rather downgrade to Snow Leopard than have grep behave like this.
PS. I know grep has been changed and the -p option removed, but I don't use that option so surely that shouldn't affect me.
MacBook Pro, OS X Mountain Lion (10.8.2)