I'm trying to open a large list of .xml files using the following command:
ls | grep navigation-drawer-config- | open
However, this doesn't work. From my understanding of piping, this should pipe what grep finds in the directory matching that name pattern into open, and open should open the files. I'm able to open them by manually doing something like so:
open file1 file2
However, when I use the first command, I get back the help screen for the open command. Are you not able to combine grep with open? Or am I missing something else?
open $(ls | grep navigation-drawer-config-)
ls
here