Skip to content

Instantly share code, notes, and snippets.

@yamano

yamano/multitail.sh

Created Sep 7, 2016
Embed
What would you like to do?
#!/bin/bash
trap 'kill $(jobs -p)' EXIT
for f in "$@"; do
tail -f "$f" | perl -pe "print '$f '" &
done
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.