Say I have a list of keywords:
$ cat filenames.txt
satin
perdido
savoy
stockings
april
lullabye
I want to find all the files in some directory that contains those keywords.
I have tried something like:
find some_dir/ -type f "$(printf '-or -iname *%s* ' $(cat filenames.txt))"
But somehow I am not able to use printf to build the whole find command; I get:
-bash: printf: -o: invalid option