Wanted to find all files which contained a specific string and then extract a part of the line we were interested in.
First the GREP:
grep -R --include=*.vm* > results.txt
then run this python script:
import re
for line in open('editablecomponents.txt'):
match = re.search(r'#editableComponent\("(.*?)"', line)
if match:
print match.group(1) + "Display.vm"