I am trying to cat three files and obtain and insert a newline \n
after each file ,I thought of using something like :
cat f1 f2 f3|tr "\EOF" "\n"
without success.
What is the easiest way to achieve that ?
I am trying to cat three files and obtain and insert a newline \n
after each file ,I thought of using something like :
cat f1 f2 f3|tr "\EOF" "\n"
without success.
What is the easiest way to achieve that ?
If you are not tight to cat tool only, use bat https://github.com/sharkdp/bat.
bat -p file1 file2 file3
also, if you have dynamic files count, one can use wildcard:
bat -p *.extension