哪个命令会将 system.log 中 ERROR 行的数量写入 task1_output.txt?
system.log
ERROR
task1_output.txt
grep 'ERROR' system.log > task1_output.txt
grep -c task1_output.txt > system.log
grep -vc 'ERROR' system.log > task1_output.txt
grep -c 'ERROR' system.log > task1_output.txt