I’m no expert at shell scripting so I just want a quick answer. I tried something like
ls -R|grep generator|gedit
but It just doesn’t work because it’s just a stupid guess. So what’s the correct way?
UPDATE: answers by Jaypal Singh , kev and Sorin were very helpful but kev’s answer covers more cases so I’m marking that correct.
Advertisement
Answer
find . -name 'generator.yml' -print0 | xargs -0 gedit
Or
find . -name 'generator.yml' -exec gedit {} +