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
you can use this simple command instead of using a for loop,
ls -ltr | awk '{print $9}' | xargs head