Even better is
find . -type f -name "*.pyc" -delete

Or if you have zsh
rm **/*.pyc

:)

On Mon, Jun 3, 2013 at 10:45 PM, dan <[email protected]> wrote:
> Another alias... purge any pyc files from your project (only useful if this
> is not set
> http://docs.python.org/2/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE):
>
> alias delpyc='find ./ -type f -name "*.pyc" -exec rm -f {} \;'
>
>
> On 3 June 2013 21:52, William ML Leslie <[email protected]>
> wrote:
>>
>> Thinking about your pygrep, I would like to share something similar
>> I've been using.
>>
>> alias sgrep='grep -R -E --exclude-dir=.git --exclude-dir=.svn
>> --exclude-dir=.hg --exclude-dir=test --exclude='\''*~'\''
>> --binary-files=without-match '
>>
>> I entirely divorced rope since I started using this sgrep a few years
>> ago.  You can make it python specific of course, but this happens to
>> 'work' for most of my projects.  And of course there's ack, if you
>> like that sort of thing.
>>
>> --
>> William Leslie
>>
>> Notice:
>> Likely much of this email is, by the nature of copyright, covered
>> under copyright law.  You absolutely may reproduce any part of it in
>> accordance with the copyright law of the nation you are reading this
>> in.  Any attempt to deny you those rights would be illegal without
>> prior contractual agreement.
>> _______________________________________________
>> melbourne-pug mailing list
>> [email protected]
>> http://mail.python.org/mailman/listinfo/melbourne-pug
>
>
>
>
> --
> Peace!
> Dan
>
> Homer's Brain: Use reverse psychology.
> Homer: Oh, that sounds too complicated.
> Homer's Brain: Okay, don't use reverse psychology.
> Homer: Okay, I will!
>
> _______________________________________________
> melbourne-pug mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/melbourne-pug
>
_______________________________________________
melbourne-pug mailing list
[email protected]
http://mail.python.org/mailman/listinfo/melbourne-pug

Reply via email to