I have an input (let\'s say a file). On each line there is a file name. How can I read this file and display the content for each one.
Here is a while loop:
while
while read filename do echo "Printing: $filename" cat "$filename" done < filenames.txt