Last active
September 13, 2018 14:52
-
-
Save AjaxOdessa/f9c25936b6f803358e5966cc918bc86d to your computer and use it in GitHub Desktop.
Quickly combine Hipchat server logs
This file contains hidden or 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
cd /home/admin/logs/ | |
gzip -d *.gz | |
for i in $(ls ./*.log); do cat `ls -tr $i*` > ../$i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment