I am new to python and using python2.7 in linux, I wrote the small python program as below, but i want to store the each filename into one variable(index_list[1],...).
index_list=[]
index_list=commands.getoutput('find /etl/input/ -maxdepth 6 -iname "*tmp" ')
print index_list[1]
Thanks, Prasad