Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's suppose you want to make a long list of Urls but separated with a comment which

indicates what the Urls are about. Is there a way to do it?

share|improve this question
How is this related to Ubuntu? – OrangeTux Jan 26 '14 at 13:26
@OrangeTux : – MrVaykadji Jan 26 '14 at 13:39
Ok, it is clear. – OrangeTux Jan 26 '14 at 13:51
up vote 5 down vote accepted

youtube -dl supports only one url at each line in a url listed batch file. It will not read a url/line if it begins with a # or part of line after #. In that case your batch file should look like,

#comment 1
#commeent 2

You can comment like this also, #comment 1 #comment 2

To download with such a batch file, use

youtube-dl --title --batch-file='/path/to/list.txt'

I assume list.txt contains the urls.

share|improve this answer

Create your batch file with a url-list as usual. And comment a line by putting a # at the beginning of the line.

youtube-dl will not read that line.

Example: url.txt

#This is link 1
#This is link 2 (blabla)
share|improve this answer

You can comment them just the way you'd comment them in bash. Just put a # before the comment. You can have a text file like this.

#This is a comment
# I hope people are not tasty #Would we eat each other if it were legal
#I love the moon   #This is a comment too
share|improve this answer

You can comment a line by putting a # or a ; at the beginning of the line. Both will work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.