On Jun 21, 8:43 pm, a...@pythoncraft.com (Aahz) wrote:
In article
f28e2bcc-3b51-4d43-81e7-9a7810040...@o36g2000vbi.googlegroups.com,LeoBrugud sakradevanamin...@gmail.com
wrote:
Not being very familiar with python, nor with cgi/http, I intend to
have 3 of buttons in a webpage, each of
Given a regular expression pattern, for example, \([A-Z].+[a-z]\),
print out all strings that match the pattern in a file
Anyone tell me a way to do it? I know it's easy, but i'm completely
new to python
thanks alot
--
http://mail.python.org/mailman/listinfo/python-list
I'm new to Python, so my question may sounds naive. Here is it.
I have a text file like this:
www.a.com
www.b.com
www.c.com
...
I want to read one line from this file at a time, which I know how to
do. And use it as an argument to a command, for example, telnet www.a.com
and so on. However I
I guess that you want to loop over a file and for each line in the
file you want to call some
external program with the line as the argument.
Have a look at subprocess module
http://docs.python.org/lib/module-subprocess.html
If there is some else that you meant, please specify .
Cheers,