Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[嚙踝蕭嚙瘩] find 嚙磊wc 嚙踝蕭嚙瘩嚙請梧蕭

6 views
Skip to first unread message

DanzYam

unread,
Jul 5, 2015, 11:07:02 PM7/5/15
to

想跟大家請教個問題,因為要把大量檔案做mv ,想確認資料數量無誤
所以用find+wc來記算數目

目前有一個資料夾,約15萬個檔,副檔名是.voc

1.

find . * |wc -1
回傳argument list too long
0

2.

find . *.voc |wc -1
回傳argument list too long
0

3.

find . *.txt |wc -1
No such file or directory
159999


結果反而應該回傳0的把數量回傳回來了
想請教下我哪邊理解錯誤呢?謝謝

Dan



--

不過是人

http://www.facebook.com/twaiting

--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.66.243.96
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1436151542.A.463.html

0 new messages