.pyc files...
Mike Meyer
mwm at mired.org
Sun Nov 14 19:58:50 EST 2004
Christos "TZOTZIOY" Georgiou <tzot at sil-tec.gr> writes:
> On 14 Nov 2004 13:30:38 GMT, rumours say that Nick Craig-Wood
> <nick at craig-wood.com> might have written:
>
>>This *is* bullet proof though
>>
>> find . -name '*.pyc' -print0 | xargs -0 rm -f
>>
>>And if you don't want an error when there aren't any files
>>
>> find . -name '*.pyc' -print0 | xargs -0r rm -f
>>
>>End unix sysadmin lecture ;-)
>
> Minor detail: these are the GNU versions of 'find' and 'xargs' in the
> above example; the traditional UNIX ones do not have the -print0 and -0
> options, respectively.
Hmm. My copy of the find and xargs sources which have those features
both have University of California copyrights on them.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list