Skip to content

Instantly share code, notes, and snippets.

@jsidhu
Created June 6, 2016 21:44
Show Gist options
  • Save jsidhu/43455f55ee2a651d2540a6b923b342b2 to your computer and use it in GitHub Desktop.
Save jsidhu/43455f55ee2a651d2540a6b923b342b2 to your computer and use it in GitHub Desktop.
linux: run tail for a limited interval
(tail -F named.log & P=$! ; sleep 5; kill -9 $P) | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment