S
Sean Berry
r = glob.glob('/*')['/dev', '/usr', '/stand', '/etc', '/cdrom', '/proc', '/bin', '/boot',
'/mnt', '/modules', '/root', '/sbin', '/tmp', '/var', '/sys', '/COPYRIGHT',
'/kernel.GENERIC', '/kernel', '/compat', '/home', '/kernel.old',
'/modules.old'][]
I can do a
and that works. Why doesn't glob.glob work on /usr/websites?
What I am trying to do is write a simple script that will recursively search
for and replace key words in all files. I am doing this mainly for practice
since I already can write a shell script or use an awk/sed combo. Does
anyone have anything that does a similar task? Thanks
'/mnt', '/modules', '/root', '/sbin', '/tmp', '/var', '/sys', '/COPYRIGHT',
'/kernel.GENERIC', '/kernel', '/compat', '/home', '/kernel.old',
'/modules.old'][]
I can do a
and that works. Why doesn't glob.glob work on /usr/websites?
What I am trying to do is write a simple script that will recursively search
for and replace key words in all files. I am doing this mainly for practice
since I already can write a shell script or use an awk/sed combo. Does
anyone have anything that does a similar task? Thanks