1.perl -ne ‘m/^([^#][^\s=]+)\s*(=.*|)/ && printf(”%-35s%s\n”, $1, $2)’ /etc/my.cnf
2.[clIEnt]
3.port = 3306
4.socket = /var/run/mysqld/MySQLd.sock
5.[ MySQLd_safe ]
6.socket = /var/run/mysqld/MySQLd.sock
7.nice = 0
8.[ MySQLd ]
9.user = MySQL
10.pid-file = /var/run/mysqld/MySQLd.pid
11.socket = /var/run/mysqld/MySQLd.sock
12.port = 3306
13…..