sed 操作
Posted karihou
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sed 操作相关的知识,希望对你有一定的参考价值。
[[email protected] sysbench]# sysbench --help | sed -n ‘/mysql options:/,/^$/p‘ mysql options: --mysql-host=[LIST,...] MySQL server host [localhost] --mysql-port=[LIST,...] MySQL server port [3306] --mysql-socket=[LIST,...] MySQL socket --mysql-user=STRING MySQL user [sbtest] --mysql-password=STRING MySQL password [] --mysql-db=STRING MySQL database name [sbtest] --mysql-ssl[=on|off] use SSL connections, if available in the client library [off] --mysql-ssl-cipher=STRING use specific cipher for SSL connections [] --mysql-compression[=on|off] use compression, if available in the client library [off] --mysql-debug[=on|off] trace all client library calls [off] --mysql-ignore-errors=[LIST,...] list of errors to ignore, or "all" [1213,1020,1205] --mysql-dry-run[=on|off] Dry run, pretend that all MySQL client API calls are successful without executing them [off] [[email protected] sysbench]#
以上是关于sed 操作的主要内容,如果未能解决你的问题,请参考以下文章