bash cat multiple files

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 ?


cat f1 <(echo) f2 <(echo) f3 <(echo) 


perl -pe 'eof&&s/$/\n/' a b c

Need Your Help

sql datediff problem

sql datediff

I'm trying to calculate the difference between 2 dates, the current date and the date my members subscribed on the site. If the difference is more than 30 days, I turn off their subscription. I just

Invalid parameter number error using DataTables with Laravel

mysql laravel-4 datatables

When DataTables tries to get data, it always gets tripped up on this Eloquent query:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.