Simple question for all of you python gurus
Diez B. Roggisch
deets_noospaam at web.de
Thu Feb 26 18:11:04 EST 2004
> How can I do this?
> Thanks in advance for answering this seemingly easy question.
You're code might work if you use os.chdir to change the current working
directory.
Another that works on the command-line (and thus for your script) is to use
xargs with -l<num>, e.g.:
find / | xargs -l 10 grep -i foo
xargs then will invoke grep in batches of ten.
--
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list