发布网友
共1个回答
热心网友
while read line
do echo $line | grep -o '|!' | wc -l
done < file_name.txt
希望可以帮助到你。搜索《Linux就该这么学》 加入一起学习交流。