Timeline for How can I tail multiple files and pipe their output to an SSH connection
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 29, 2020 at 15:26 | comment | added | Jonathan Marsden | An awk script would be one "obvious" way to proceed, to me at least. Perl or Python would also work fine. It could be done in bash if you prefer, but I think it would be uglier. | |
| Apr 28, 2020 at 13:56 | comment | added | Brian H. | You're right, the combined log file is badly named in my example code. Thanks for the suggestion. Do you know of a way through Linux commands to split the output of the file on our server? We could probably get some regExes built, but that approach seems brittle. Part of the issue is that the header lines only appear when output is detected from a different file, so the number of lines after each header is variable. | |
| Apr 28, 2020 at 2:11 | history | answered | Jonathan Marsden | CC BY-SA 4.0 |