Use pipe of commands as argument for diff

后端 未结 5 1318
傲寒
傲寒 2021-01-30 06:39

I am having trouble with this simple task:

cat file | grep -E ^[0-9]+$ > file_grep
diff file file_grep

Problem is, I want to do this without

5条回答
提交回复
热议问题