我有一个文件末尾有空行的文件。我可以使用grep在脚本中作为变量传递的文件名来计算文件末尾的空行数吗?
grep
grep text-processing wc
grep ×1
text-processing ×1
wc ×1