May 10, 2017 11:26 AM
(This post was last modified: May 11, 2017 06:48 AM by Turnikman.)
Hi, i am new to python, and need some help.
import subprocess
direct_output = subprocess.check_output('find / -type f -name \"*.srt\"', shell=True)
print direct_output
Thats my code. 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
....................................................[/code][/size][/font]
Sorry for my bad English and thanks😉😉
import subprocess
direct_output = subprocess.check_output('find / -type f -name \"*.srt\"', shell=True)
print direct_output
Thats my code. 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
....................................................[/code][/size][/font]
Sorry for my bad English and thanks😉😉

