我需要通過兩個不同的文件獲得差異和uniq輸出。如何在不同和uniq中找到兩個文件內容
此時就把one.txt存盤
The lightning and thunder
They go and come;
But the stars and the stillness
Are always at home.
two.txt
The lightning and thunder
They go and come;
Tyger! Tyger! burning bright
In the forests of the night,
What immortal hand or eye
But the stars and the stillness
Are always at home.
我想在這樣兩種不同的方式來獲得輸出。
same.txt
The lightning and thunder
They go and come;
But the stars and the stillness
Are always at home.
diff.txt
Tyger! Tyger! burning bright
In the forests of the night,
What immortal hand or eye
But the stars and the stillness
使用'diff文件file2' – 2014-10-09 12:36:09
行 「但是明星與寂靜」 不應該在'diff.txt' 。 – fedorqui 2014-10-09 12:44:00