Help using cat command.
Hello everyone.
I know there should be a simple way to do this, but I'm having a hard time finding this online. Let's say that I have a directory with a bunch of text files, and I want to cat them all together. Code:
cat *.txt > output.txt My question: how do I cat a group of files together, but throw a new line character between each file? |
I would think the easiest way would be to add the newline to each file, then go about catting them normally.
Code:
sed -i -e '$a\' *.txt |
That works for me, thanks szboardstretcher,
|
All times are GMT -5. The time now is 03:04 AM. |