grep CONFIGURE_LINE /app/mysql/bin/mysqlbug
提示:還發現很多人先 cat,在 grep,很不專業,應杜絕。
范例 3:
[root@VM-001~]# grep CONFIGURE_LINE /app/mysql/bin/mysqlbug
CONFIGURE_LINE="./configure '--prefix=/app/mysql/' '--enable-assembler' '--with-e
xtra-charsets=complex' '--enable-thread-safe-client' '--with-big-tables' '--with-readli
ne' '--with-ssl' '--with-embedded-server' '--enable-local-infile' '--with-plugins=partiti
on,innobase' '--with-plugin-PLUGIN'"
`test -n "$CONFIGURE_LINE" && echo "Configure command: $CONFIGURE_LINE"` 提示:/app 為 mysql 服務安裝路徑