I have a line with:
-Dapp.id=XXX -Dapp.name=YYY -Dapp.inventory.id=KKK -Dapp.inventory1.id=UNDEFINED -app.id=MMM
in an inventory.txt file. If I use the grep statement below, I get the entire line instead of only KKK
:
grep -F app.inventory.id= /cme/apps/install/*/inventory/*.txt
I also tried flags like -Fx
and -w
, but nothing works. How can I get the just KKK
using grep?