Skip to content

Instantly share code, notes, and snippets.

@drobinson
Created May 31, 2018 16:25
Show Gist options
  • Save drobinson/1609e98f607d4b6b6af5eca3843c9a5f to your computer and use it in GitHub Desktop.
Save drobinson/1609e98f607d4b6b6af5eca3843c9a5f to your computer and use it in GitHub Desktop.
Opens the newest file in a directory with less - used for reading var/report logs in Magento
ls -t | head -n1 | xargs -n1 less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment