Concatenate files placing an empty line between them
14
votes
9
answers
6351
views
I have a bunch of files with the same extension (let's say .txt) and I would like to concatenate them. I am using
cat *.txt > concat.txt
, but I would like to add a new line between each file so to distinguish them in concat.txt.
Is it possible to do it with a single bash command rather than an implementation such as this ?
Thank you
Asked by Gigiux
(557 rep)
Jan 11, 2021, 12:29 PM
Last activity: Feb 8, 2024, 10:57 AM
Last activity: Feb 8, 2024, 10:57 AM