linux中 写shell程序,用于统计文件中关键字的个数如题所示[解决办法]grep -o keyword fileName | wc -l如果一行最多一个关键字,可以简写为:grep -c keyword fileName