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.
xargs --arg-file inputfile cat
This will output the filename followed by the file's contents:
xargs --arg-file inputfile -I % sh -c "echo %; cat %"