Skip to content

Instantly share code, notes, and snippets.

@rodvan
Created March 4, 2016 16:33
Show Gist options
  • Save rodvan/717219beaed6bc8ea93c to your computer and use it in GitHub Desktop.
Save rodvan/717219beaed6bc8ea93c to your computer and use it in GitHub Desktop.
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