How can I grep a specific word in a single string that contains repetitions?
For example :
Apple_1 Apple_1_Test Juice_2 Juice_2_H
If I use
grep -Eo 'Apple_1' I get two results (because of two Apple_1 in the original string)
But what if I want to grep only the perfect word
Apple_1 and not
Juice_2 and not