I am trying to make grep from the result of emacs find-grep, so I use the following command:
find ... | xargs ... | grep -v enable
The result shows I have a grep buffer, but when I press enter on every entry trying to go to this file, emacs says that the file does not exist. On the minibuffer, the [[K] character is in front of the full file path. This basically makes the file name invalid. I looked through the grep manual, but I donβt know what I can do about it.
I probably don't need to do this, but I'm just not sure how to pass two patterns, one for grep and the other for inverting grep. (Could be a regular expression?)
Anyone have any suggestions on this?
Decision:
I did this on a Cento 5.5 machine. Turns out this is a problem due to the old version of grep. I installed the latest version of grep in my home directory, and now everything is fine.
source share