I am new to python, and need some help. This is my code:
import subprocess
direct_output = subprocess.check_output('find / -type f -name \"*.srt\"', shell=True)
print direct_output
I have output like this:
/path/to/my/code/name.srt
/path/to/my/code/other_name.srt
But I want to list this outputs one by one. Something like:
print print direct_output[1]
output:
/path/to/my/code/other_name.srt