想要使文本以整齐的tab表示,可以使用column -t命令
例子:
[mysqld_multi] mysqld = /usr/local/mysql/bin/mysqld_safe mysqladmin = /usr/local/mysql/bin/mysqladmin user = root log = /var/log/mysqld_multi.log [mysqld3306] port = 3306 socket = /tmp/mysql3306.sock pid-file = /var/run/mysql/mysql3306.pid datadir = /data/innodb user = mysql
写入到my.test.cnf中
运行
column -t my.test.cnf
变成了
[mysqld_multi] mysqld = /usr/local/mysql/bin/mysqld_safe mysqladmin = /usr/local/mysql/bin/mysqladmin user = root log = /var/log/mysqld_multi.log [mysqld3306] port = 3306 socket = /tmp/mysql3306.sock pid-file = /var/run/mysql/mysql3306.pid datadir = /data/innodb user = mysql
Leave a Reply