Tags: Commands

Using grep to removing comments, newlines/whitespace from config files

As configuration files are often full with comments and blank lines reading them inside shell become tedious! Sometimes you just want to quickly recap active configuration option only. Mostly, comments starts with ”#“(hash) or “;” (semicolon). Below is a command I often use while debugging various configuration files. For files having comment starting with “;” e.g. php.ini […]