FG
💻 Software

How can one join files with seperating data in bash?

Fresh5 days ago
Mar 15, 20266667 views
Confidence Score0%
0%

Problem

So one can easily join files in bash with cat: But what if one wants to insert something between the input files, like for example a linefeed?

Error Output

cat *.txt > all.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can one join files with seperating data in bash?

Low Risk

Requires GNU : append a line of 8 dashes and a newline after each file You can use your sed '$d' with that Compare to these: Insert a line of dashes before each file: Do the same, but without a newline after the dashes: Put a line of dashes on the e…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment