#!/bin/bash
while read line;do
num=$(echo $line | grep -o [0-9] | wc -l)
if [ $num -eq 1 ];then
echo $line
fi
done < nowcoder.txt

#!/bin/bash
while read line;do
num=$(echo $line | grep -o [0-9] | wc -l)
if [ $num -eq 1 ];then
echo $line
fi
done < nowcoder.txt