Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Mark Lawrence
On 09/10/2015 16:44, Jason Swails wrote: On Fri, Oct 9, 2015 at 6:08 AM, Joshua Stokes > wrote: Hi Is there an available script to remove file created by either using the Python module or by using git? ​There's always

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 21:08:22 +1100, Joshua Stokes writes: >Hi > >Is there an available script to remove file created by either using the Python >module or by using git? > >Thanks > >>From Joshua P Stokes No. A file is a file. It doesn't know which program created it. I can use

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Jason Swails
On Fri, Oct 9, 2015 at 6:08 AM, Joshua Stokes wrote: > Hi > > Is there an available script to remove file created by either using the > Python module or by using git? > ​There's always this nugget: git clean -fxd This will get rid of *all* untracked files in the

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Grant Edwards
On 2015-10-09, Marko Rauhamaa wrote: >>> $ rm $(find . ) > > This is not safe since find might return pathnames with spaces in > them. Good point. > Also, the command fails if find should produce no matches. I just tried, it with a pattern that produced no matches, and it

Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Joshua Stokes
Hi Is there an available script to remove file created by either using the Python module or by using git? Thanks >From Joshua P Stokes -- https://mail.python.org/mailman/listinfo/python-list

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Grant Edwards
On 2015-10-09, Joshua Stokes wrote: > Is there an available script to remove file created by either using > the Python module or by using git? Yes. Execute the following at the bash prompt: $ rm $(find . ) -- Grant Edwards grant.b.edwardsYow!

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Chris Angelico
On Sat, Oct 10, 2015 at 1:01 AM, Grant Edwards wrote: > Yes. Execute the following at the bash prompt: > > $ rm $(find . ) Or if you're using GNU find: $ find -delete ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Chris Angelico
On Fri, Oct 9, 2015 at 9:08 PM, Joshua Stokes wrote: > Hi > > Is there an available script to remove file created by either using the > Python module or by using git? > > Thanks I asked my advice device, and it said: Ask again later. Unsatisfied, I reworded the

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Chris Warrick
On 9 October 2015 at 12:08, Joshua Stokes wrote: > Hi > > Is there an available script to remove file created by either using the > Python module or by using git? There’s no such script, but we could help you write one. Now, what “Python module” do you mean? Unless

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Tim Chase
On 2015-10-09 14:01, Grant Edwards wrote: > > Is there an available script to remove file created by either > > using the Python module or by using git? > > Yes. Execute the following at the bash prompt: > > $ rm $(find . ) If you've got GNU find, you can just $ find . -type f

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Marko Rauhamaa
Chris Angelico : > On Sat, Oct 10, 2015 at 1:01 AM, Grant Edwards > wrote: >> $ rm $(find . ) This is not safe since find might return pathnames with spaces in them. Also, the command fails if find should produce no matches. > Or if you're using GNU