I've been typing commands like the (the long way) for my whole life.
tail -f /var/log/syslog /var/log/mail.log /var/log/mail.err
This is probably a really basic question, but I had a hard time finding the answer.
Is there a regex way to match multiple files in the folder without retyping the location each time?
This saves me a few keystrokes, but not many
export LOGDIR=/var/log
tail -f $LOGDIR/syslog $LOGDIR/mail.log $LOGDIR/mail.err
And sometimes I want multiple locations... I want to figure out something like this:
tail -f /var/log/(mail*|syslog|nginx/*)
(but actually have it work)