I have a program that returns me a list of file names. I need to pass these file's contents to another program.
I know how to use cat
to pass content:
cat file1 file2 file3 | some_program
what I want to do is something like:
list=`get_file_list`
cat ${list} | some_program
Though doing the above will simply pass the content of the list variable, rather than the files' content.