Skip to content

Instantly share code, notes, and snippets.

@tnibert
Created August 22, 2022 00:10
Show Gist options
  • Save tnibert/9fb6c8dfe59ab45f4cbd724cdb63f13b to your computer and use it in GitHub Desktop.
Save tnibert/9fb6c8dfe59ab45f4cbd724cdb63f13b to your computer and use it in GitHub Desktop.
shell tricks
# get all lines between two timestamps in a log
sed -n '/2012-08-20 11:34/,/2012-08-22 16:34/p' file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment