📜  bash 从每一行中删除尾随空格 - Shell-Bash 代码示例
📅  最后修改于: 2022-03-11 14:50:32.012000             🧑  作者: Mango
代码示例2
#!/bin/bash
#Make our variable
var="foo bar"
#Print it without the spaces
echo ${var//[[:blank:]]/}
#Output will be foobar