Skip to content

Jan Faix

Grep tips and tricks

23/11/201426/10/2014 by jan

Grep configuration file without comments:
grep -Ev "(^[[:blank:]]*#|^$)" /etc/nginx/nginx.conf

Grep log file without unwanted messages:
grep 'Nov 17' /var/log/syslog | egrep -vi "\[UFW BLOCK\] | CRON"

Print Friendly, PDF & Email
Categories Articles Tags comments, grep
Postfix server configuration
VirtualBox and phpvirtualbox

Pages

  • About
  • Curriculum Vitae
  • Articles
  • Gallery

Archive

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 Jan Faix • Built with GeneratePress