Linux Lite Forums

Development => Scripting and Bash => Topic started by: colin on April 27, 2017, 07:39:31 AM

Title: cat commands
Post by: colin on April 27, 2017, 07:39:31 AM
When i want to open more than one file i just type: cat file1 file2 press Enter and the files appear one on top of the other. Is there a way to put a space between these files?  Thanks

 
Title: Re: cat commands
Post by: colin on April 27, 2017, 07:56:03 AM
Have used <(echo) like so, :~$ cat file1 <(echo) file2 and it does the job.
Title: Re: cat commands
Post by: firenice03 on April 27, 2017, 08:12:04 AM
@colin

You may find the links below helpful  ???
*Add* I see you found an option - these may have some benefit to you....

https://www.howtogeek.com/278599/how-to-combine-text-files-using-the-cat-command-in-linux/

https://serverfault.com/questions/172284/linux-cat-with-separators-among-files
Title: Re: cat commands
Post by: colin on May 12, 2017, 12:25:19 PM
Sorry about the delay but i really forgot to checkup on this post and to say a big thanks to firenice03 for the links.
Title: Re: cat commands
Post by: firenice03 on May 12, 2017, 01:25:36 PM
Sorry about the delay but i really forgot to checkup on this post and to say a big thanks to firenice03 for the links.

 ;D ;D ;D

Glad it helped

 ;D ;D ;D