Hi everybody,
I've been experimenting with Python lately and for the most part it's been a smooth ride. I have one little problem that maybe one of you can help me with.
PROBLEM:
I have list with one word per line.
EXAMPLE
apples
oranges
pears
grapes
etc...
I also have a shell command containing a variable that I want to execute within the python code.
EXAMPLE
"do something with this $variable"
I need to execute the command for each item on the list. with each item on the list being equal to the variable in consecutive sequence.
Any help would be much appreciated