Skip to content

Instantly share code, notes, and snippets.

@atomlab
Created July 12, 2020 06:57
Show Gist options
  • Save atomlab/41a87516227b0eb8525fec7bb2cd9810 to your computer and use it in GitHub Desktop.
Save atomlab/41a87516227b0eb8525fec7bb2cd9810 to your computer and use it in GitHub Desktop.
print file content between match lines
sed -n '/Jul 11 16:40:00/,/Jul 11 17:10:00/p' /var/log/syslog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment