Skip to content

Instantly share code, notes, and snippets.

@iamFIREcracker
Created July 28, 2015 20:00
Show Gist options
  • Save iamFIREcracker/8505ebc719ff3ff14597 to your computer and use it in GitHub Desktop.
Save iamFIREcracker/8505ebc719ff3ff14597 to your computer and use it in GitHub Desktop.
function tail_from() {
tail -n 0 -f $2 > /tmp/tail_from.$$ &
tac $2 | sed "/$1/q" | tac | sed '/^$/d'
tail -c +1 -f /tmp/tail_from.$$
kill %%
rm /tmp/tail_from.$$
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment