通用的方法 # 方法一、使用grep命令 #!/bin/sh str="/path/to/foo.txt" # 使用if语句 if echo "$str" | grep -q -E '\.txt$' Shell 原创 k4nz 2021-07-20 10:10:31 9819阅读 java 判断 string 字符结尾 java判断字符串以数字结尾 其中一个小环节是传来一个String类型的参数,需要判断该...
截尾数字数据 中文截尾数字数据 英文【计】 truncated numeric data