I am trying to consolidate multiple information files (<hostname>.Linux.nfslist) into one file so that I can import it into Excel. I can get the file contents with cat *Linux.nfslist >> nfslist.txt . I need each line prefaced with the hostname. I am unsure how to do this.
--- Post updated at 06:33 PM ---
If I could even just get the filename printed before the contents, that would even be better.
I need it to pull the filename not <hostname>. Here is the output from your command and an example of one of the filename I'm pulling information from.