Last active
July 8, 2020 04:57
-
-
Save Adam-Langley/54d7183bb36d406a4ba20253126ed004 to your computer and use it in GitHub Desktop.
Concatenate log files, sorted by modified date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# joins all files in a folder, sorted by modified date | |
# into a single file, output.txt | |
cat $(ls -tr *.log) > output.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment