安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

使用mysqld -V awk print $3得到10614-MariaDB现在要去掉-MariaDB该如何优化这一命令

  • 日期: 2028-06-19
  • 标签: 科技

你可以使用sed命令来去掉"-MariaDB"。以下是优化后的命令:

mysqld -V | awk '{print $3}' | sed 's/-MariaDB//'

这个命令中的sed 's/-MariaDB//'表示将"-MariaDB"替换为空字符串。

使用mysqld -V awk print $3得到10614-MariaDB现在要去掉-MariaDB该如何优化这一命令

原文地址: https://www.cveoy.top/t/topic/h1CJ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: Some people think that it is inevitable that traditional cultures will be lost as technology develops But others believe that technology and traditional cultures are compatibleDiscuss both views and g
  • 下一篇: Vxworks DMA的中断

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:豫ICP备2024104334号-2