FG
💻 Software

Merging and sorting multiple files with "sort"

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

Problem

I have a bunch of text logfiles in the following format: The files are already sorted by timestamp. I need to get 1 log file with all the logs from multiple logs files, sorted by timestamp. Note that the log files are really huge, around 3-4G each (and there are dozens of them) I tried the followin…

Error Output

ID          (17 characters)
Timestamp   (14 characters YYYYmmddHHMMSS e.g. "20060210100040" -> 2006/02/10 10:00:40)
Random data (? characters)
end of…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Merging and sorting multiple files with "sort"

Low Risk

reads: -m, --merge merge already sorted files; do not sort The '+' symbol doesn't show up in my man page for sort. So I don't know how you get +17. If you want to use the whole line, you do not need or , since the default is to start sorting from be…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment