[Techtalk] finding bad files

A. Mani a.mani.cms at gmail.com
Mon Apr 13 18:20:24 UTC 2015


On Mon, Apr 13, 2015 at 10:23 PM, Akkana Peck <akkana at shallowsky.com> wrote:
> find [root_dir] -type f -exec cp "{}" /dev/null \; | tee badfiles.txt 2>&1
>
> Then collect the error messages in badfiles.txt.


cat would be faster than cp?
If the latter is going to find errors, then the former will.



Best

A. Mani



Prof(Miss) A. Mani
CU, ASL, AMS, ISRS, CLC, CMS
HomePage: http://www.logicamani.in
Blog: http://logicamani.blogspot.in/
http://about.me/logicamani
sip:girlprofessor at ekiga.net


More information about the Techtalk mailing list