Created
March 4, 2016 16:33
-
-
Save rodvan/717219beaed6bc8ea93c to your computer and use it in GitHub Desktop.
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
echo Usage: taillog [ nuber of lines to tail ] | |
tailpath1=/taillog.txt | |
tail -n $1 /var/log/*.log > $tailpath1 | |
tail -n $1 /usr/local/apache/logs/*_log >> $tailpath1 | |
tail -n $1 /var/log/messages >> $tailpath1 | |
tail -n $1 /var/log/exim_mainlog >> $tailpath1 | |
tail -n $1 /var/log/exim_paniclog >> $tailpath1 | |
tail -n $1 /var/log/exim_rejectlog >> $tailpath1 | |
tail -n $1 /var/log/xferlog >> $tailpath1 | |
tail -n $1 /usr/local/cpanel/logs/*_log >> $tailpath1 | |
vi $tailpath1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment