Re: python equivalent of bash find

2007-03-01 Thread BartlebyScrivener
On Mar 1, 3:58 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > MHO is that you'd better learn linux (well... Unix) tools. Reinventing > the SquareWheel(tm) is usually not a good idea. I agree. It's just a matter of experience and learning when to use Unix tools and when to use Python. The

Re: python equivalent of bash find

2007-03-01 Thread Bruno Desthuilliers
BartlebyScrivener a écrit : > I recently moved from XP to Linux, but would like to use Python > whenever possible. > > line from bash script: > > find ~/Mail -xdev -type f \( -mtime 0 -or -mtime 1 \) -exec cp -aPvu > "{}" /backup-dest \; > > What modules would I use to accomplish this in Python?

Re: python equivalent of bash find

2007-03-01 Thread BartlebyScrivener
> You can probably replicate that using the modules os and shutil. Thank you both for the quick response. rd -- http://mail.python.org/mailman/listinfo/python-list

Re: python equivalent of bash find

2007-03-01 Thread Jerry Hill
On 1 Mar 2007 12:14:43 -0800, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > I recently moved from XP to Linux, but would like to use Python > whenever possible. > > line from bash script: > > find ~/Mail -xdev -type f \( -mtime 0 -or -mtime 1 \) -exec cp -aPvu > "{}" /backup-dest \; > > What modul