necrux

Print Until it Makes Sense!

  • Who am I?

Bash

Parse Log Files with sed

January 3, 2016 / Leave a Comment

When parsing log files sed is not the go-to tool for most techs, but it offers a pretty neat feature: the ability to easily search a log file for a specific date/time range. Pattern Matching sed -n ‘/Dec 30 13:00/p’ /var/log/messages Date Range Matching sed -n ‘/Dec 30 13:00/,/Dec 30 14:00/p’ /var/log/messages Change Delimiters If … [Read more…]

Posted in: Bash, Linux, sed Tagged: Bash, Linux, logs, sed

Bash Shortcuts

December 19, 2015 / Leave a Comment

I tend to spend quite a bit of my time on a command line, so I am always looking for little ways to make my life easier. Because of that, this post will be a bit of a living document that I plan to occasionally update as I discover more handy tricks. This is not … [Read more…]

Posted in: Bash, Linux Tagged: Bash, Linux, Shortcuts

Recent Posts

  • SMTP Sender-Dependent SASL Authentication in Postfix
  • My Adventures with Multiple Monitors on Linux
  • Parse Log Files with sed
  • Backup and Restore Permissions in Linux
  • Bind Mounts in Linux

Recent Comments

  • D. Axel on SMTP Sender-Dependent SASL Authentication in Postfix

Archives

  • January 2016
  • December 2015
  • September 2015

Categories

  • Bash
  • email
  • FTP
  • Linux
  • Mailgun
  • Permissions
  • Postfix
  • sed
  • SFTP
  • SSH
  • Virtualization

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org