shell 去掉字符串中的字母
时间:2019-11-29 13:16 来源:linux.it.net.cn 作者:IT
文件:
cat file | tr -d "a-zA-Z">new_file
变量:
new_str=$(echo $str | tr -d "a-zA-Z") (责任编辑:IT)
文件: cat file | tr -d "a-zA-Z">new_file 变量: new_str=$(echo $str | tr -d "a-zA-Z") (责任编辑:IT) |