Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > tw.bbs.comp.linux > #12527
| From | cherubx.bbs@ptt.cc (DanzYam) |
|---|---|
| Newsgroups | tw.bbs.comp.linux |
| Subject | [問題] find |wc 問題請教 |
| Date | 2015-07-06 02:59 +0000 |
| Organization | 批踢踢實業 |
| Message-ID | <5UQ1Vc$VDz@ptt.cc> (permalink) |
想跟大家請教個問題,因為要把大量檔案做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
Back to tw.bbs.comp.linux | Previous | Next | Find similar
[°ÝÃD] find ¡Uwc °ÝÃD½бÐ cherubx.bbs@ptt.cc (DanzYam) - 2015-07-06 02:59 +0000
csiph-web