1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

Question about glob<-- Newbie

Discussion in 'AMD Thunderbird' started by Sean Berry, May 4, 2004.

  1. Sean Berry

    Sean Berry Guest

    ['/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
     
    Sean Berry, May 4, 2004
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.