python equivalent of bash find

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Thu Mar 1 22:58:45 CET 2007


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? Or any other
> Python tricks to copy or backup all files modified today?

MHO is that you'd better learn linux (well... Unix) tools. Reinventing 
the SquareWheel(tm) is usually not a good idea.



More information about the Python-list mailing list