ITeye博客

2016 年文章归档

共 1 篇文章

Shell Parameter Expansion

http://stackoverflow.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

2016-01-16 13:30