Skip to content

Instantly share code, notes, and snippets.

@matthiasbalke
Created September 11, 2018 12:13
Show Gist options
  • Save matthiasbalke/ab7bc0b39264eae9d126d813be96812f to your computer and use it in GitHub Desktop.
Save matthiasbalke/ab7bc0b39264eae9d126d813be96812f to your computer and use it in GitHub Desktop.
tail most up to date file in directory
#!/bin/bash
tail -F `ls -tr | grep logFilePrefix | tail -n 1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment