shell把字符串中的字母去掉,只保留数字

shell把字符串中的字母去掉,只保留数字

cat file | tr -d "a-zA-Z" > new_file