Skip to content

Instantly share code, notes, and snippets.

Mario goliathuy

  • Montevideo
Block or report user

Report or block goliathuy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@goliathuy
goliathuy / multitail.sh
Created Feb 22, 2018 — forked from stantonk/multitail.sh
Unified tail -f of a log file across multiple hosts via ssh.
View multitail.sh
#!/bin/bash
# Example input and output (from the bash prompt):
# ./multitail.sh -H use@server -f /var/log/somelog.log
# ./multitail.sh -h "use@server use@server2 use@server3" -f "/var/log/somelogA.log /var/log/somelogB.log"
# ./multitail.sh --host "usu@server usu@server" --file "/var/log/logA.log"
# Based on https://gist.github.com/stantonk/5052027 and /usr/share/doc/util-linux/examples/getopt-parse.bash
# Note that we use `"$@"' to let each command-line parameter expand to a
# separate word. The quotes around `$@' are essential!
You can’t perform that action at this time.