.pyc files...
Christos TZOTZIOY Georgiou
tzot at sil-tec.gr
Sun Nov 14 18:35:35 EST 2004
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.
--
TZOTZIOY, I speak England very best,
"Tssss!" --Brad Pitt as Achilles in unprecedented Ancient Greek
More information about the Python-list
mailing list