欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Shell Parameter Expansion bash 

程序员文章站 2024-03-18 00:03:16
...
http://*.com/questions/12671406/bash-removing-part-of-a-string

var="Memory Used: 19.54M"
var=${var#*: }            # Remove everything up to a colon and space
var=${var%M}              # Remove the M at the end
相关标签: bash

上一篇: std::map 博客分类: c++  

下一篇: