当前位置: > shell编程 >

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)
------分隔线----------------------------
栏目列表
推荐内容