youtube-dl and removing lines after processing?
I have the following command:
Code:
#!/bin/bash I'm looking for a way to remove each line in $name after it is successfully processed. I didn't see something like that as a function of a youtube-dl switch, so I'm wondering how I can do this in bash? Would it work to follow the youtube-dl command with Code:
&& $name | sed -e '1d' Thanks!! |
you can read the file with the urls into an array, then iterate over that array.
bash arrays are worth the learning curve. http://mywiki.wooledge.org/BashGuide/Arrays |
All times are GMT -5. The time now is 04:07 AM. |