In a ssh server I can connect using sftp. In this server I have a list of mkv files witch is listed in m3u8 playlist. I want to download the mkvs but I want the download according to the order in the m3u8 playlist.
If I could use sh in sftp I would be able to do someting like:
while read line ; do if [[ $path != "#"* ]] ; do get $path fi done < playlist.m3u8
if test if the line is a comment before download it)
Finaly I like to do someting like the
Read URLs from a local or external file.
So, how can I download files with sftp in the order of an m3u playlist?