Wow, Thanks everyone!!! These are really helpful tips!
Dave

On Sep 11, 1:42 am, Dave <[EMAIL PROTECTED]> wrote:
> On Sep 11, 9:15 am, Benjamin Buch <[EMAIL PROTECTED]> wrote:
>
>
>
> > find /path/to/the/directory/ -type f -name "*.pyc" -exec rm -f {} \;
>
> > Use it with caution, I'm no wizard with the terminal, just wanted to  
> > share this because it's been useful to me.
> > I found it somewhere on the net, can't find it again, so no link to  
> > the original post...
>
> I would tend to do:
>
> find /path/to/django/source -name '*.pyc' | xargs rm
>
> As this only calls one rm process, rather than one per file. As
> Benjamin says, this should be run with extreme caution and you should
> definately check you've written '*.pyc' instead of '*.py' as I did
> once.
>
> --
> David Reynolds
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to