I would like to concatenate a number of text files into one large file in terminal. I know I can do this using the cat command. However, I would like the filename of each fi
I used grep for something similar:
grep "" *.txt
It does not give you a 'header', but prefixes every line with the filename.