源实现: # 将非数字的字符串转换为数字 non_numeric_value="abc123" number_value=$((non_numeric_value)) echo $number_value