I have a file fileA.txt
Batman.plist Green Arrow.plist Hawkgirl.plist EOPrototypes.plist Person.plist EOPrototypes.plist EOJavellinPrototypes.plist Sinestro Slomon Grundy.plist Batman Beyond.plist EORedRobin EORavenPrototypes.plist
Now if I want to get all the lines that end with
plist and does not contain the word
Prototype. So far I have
grep -v "Prototype" fileA.txt | grep -E "*plist$"
And the output is
Batman.plist Green Arrow.plist Hawkgirl.plist Person.plist Slomon Grundy.plist Batman Beyond.plist
Which is exactly what I want,
But is there a better way to do this?