newbie playing with glob
jason at jorendorff.com
Fri Jan 18 06:53:05 CET 2002
Steve Holden wrote:
> for file in glob.glob("/home/*/*"):
> open(file+"/.forward", "w")
Do not run this code as root on your system!
It will erase everybody's .forward file.
The version with os.system might be what you want.
But you probably also want to make sure that each
user owns his/her .forward file; I don't think touch
will do that automatically...
## Jason Orendorff http://www.jorendorff.com/
More information about the Python-list