回文章列表
作者iFEELing.bbs@ptt.cc (ing), 信區: 386bsd
標題[問題] 想比較兩個檔案中不同的"行數"
時間批踢踢實業 (Tue Oct 3 15:10:05 2006)
轉信站: GIBBS!ccnews.ncku!news.ccns.ncku!news.mksh.phc!news.nsysu!news.cis.nctu
Origin: sally.csie.ntu.edu.tw


用 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
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻