Skip to content

Instantly share code, notes, and snippets.

@fabienhinault
Last active April 13, 2017 13:10
Show Gist options
  • Save fabienhinault/0c283016564816e8a4e324e734b17896 to your computer and use it in GitHub Desktop.
Save fabienhinault/0c283016564816e8a4e324e734b17896 to your computer and use it in GitHub Desktop.
#!/bin/sh
find <log_dir> -not -empty | xargs ls -t | head -n $1 | tail -n 1 | xargs less -NX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment