Problem scenario
You run a grep command but it fails. You get a message about “memory exhausted.” What should you do?
Solution
Possible Solution #1
If you are comparing two files line-by-line, try reversing the order of the file arguments for the grep command. For example try these two versions:
grep -f a.txt b.txt
grep -f b.txt a.txt
If the file in the left argument is smaller,
…
Continue reading “How Do You Fix the Error “grep: memory exhausted”?”







