String 删除非唯一数字字符
输入 输出String 删除非唯一数字字符,string,awk,grep,String,Awk,Grep,输入 输出 pattern01 pattern11 pattern02 NonNumeric pattern12 pattern0x的长度为7到15个字符,可以是数字或“.” patthern1x的长度介于2到4个数字字符之间 NONMRIC是一种独特的严格非数字字符 例: 输入 输出 12.1 58 135454& 548 124.485* 5587 12.58.336./ 54 多谢各位 尝试使用以下方法: 12.1 58 135454 548 124.485 5587 12.5
pattern01 pattern11
pattern02 NonNumeric pattern12
pattern0x的长度为7到15个字符,可以是数字或“.”
patthern1x的长度介于2到4个数字字符之间
NONMRIC是一种独特的严格非数字字符
例:
输入
输出
12.1 58
135454& 548
124.485* 5587
12.58.336./ 54
多谢各位 尝试使用以下方法:
12.1 58
135454 548
124.485 5587
12.58.336. 54
sed的/[^0-9.]//g'
12.1 58
135454 548
124.485 5587
12.58.336. 54
sed -r 's/[^0-9. ]//g' test.txt