[問題] 想比較兩個檔案中不同的"行數"

看板FreeBSD作者 (ing)時間19年前 (2006/10/03 23:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
用 diff 的話,會把不同的行的"內容"丟出來,要不然就是只告訴我 "兩個檔案不一樣" 但是我想要取得的是,兩個檔案中不同的"行"的數量...@@ 請問有現有的指令可以用嗎?? --- diff 的 see also 列了幾個 像是 diff3 , comm 可是好像都不是我要的... --- pipe 去給 wc -l 的話,要是diff輸出一行的內容超過螢幕被斷成兩行三行的話, wc -l 也就回給我兩行三行...好像不太有用 .... ---- 感謝您的指教 m(_._)m -- And they... Will dance if they want to dance Please brother take a chance You know they're gonna go Which way they wanna go All we know is that we don't know What is gonna be Please brother let it be Life on the other hand won't let you understand Why we're all part of the masterplan _ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.134.244.196
文章代碼(AID): #158dnAgl (FreeBSD)
文章代碼(AID): #158dnAgl (FreeBSD)