I'm trying to create an array variable with a list of files to use in a small script, needing the full path to the file. Looking around I tried something like this:
find /path/ -t f | grep randomString
It turned out that this was returning only some of the files I needed, so I tried using
wc -l with the previous command and with
ls -R /path/ | grep randomString, getting different line counts (with a difference of more than 100 lines, so I'm counting the directories from ls -R out). I'm trying to see why
find is not returning the desired results. Any ideas?