[mythtv-users] 0byte check suggestion
Shawn Asmussen
shawn.asmussen at gmail.com
Mon Jan 11 00:55:52 UTC 2010
On Mon, Dec 21, 2009 at 9:49 AM, Eric Sharkey <eric at lisaneric.org> wrote:
> On Mon, Dec 21, 2009 at 8:22 AM, Dave Richardson <mythtv at derdev.com>
> wrote:
> > and you would find and delete this way
> >
> > find . -size 0 -exec rm -f {} \;
>
> That works, but:
>
> find . -size 0 -delete
>
> is a little easier.
>
> Eric
>
>
That's true as long as you're on Linux (Or some other system using GNU
find), but the -exec rm method is a more portable way to script file
deletion using find, because the --delete option is not available with the
standard UNIX version of find.
Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100110/0ee28ebd/attachment.htm>
More information about the mythtv-users
mailing list