We have a git repo with a ton of projects and each project has an OWNERS file with one line like 'teams/search' with no quotes. I would like to somehow find all those files and create an array of tuples where the tuple is [filename, filecontents].
I can find all files with
find java -name "OWNERS"
just fine or I can cat the contents like so
find java -name "OWNERS" | cat
How can I create the array though? The next step after that is looping over the array(I think I know how to do this though my bash is rusty) and I can create symlinks by cd to the team directory and ln -s {full file path}