📅  最后修改于: 2022-03-11 14:51:23.586000             🧑  作者: Mango
#!/bin/bash
#Make our variable
var="foo bar"
#Print it without the spaces
echo ${var//[[:blank:]]/}
#Output will be foobar