Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best character to use as a delimiter in a custom batch syntax?

I've written a little program to download images to different folders from the web. I want to create a quick and dirty batch file syntax and was wondering what the best delimiter would be for the different variables.

The variables might include urls, folder paths, filenames and some custom messages.

So are there any characters that cannot be used for the first three? That would be the obvious choice to use as a delimiter. How about the good old comma?

Thanks!


1 Answers

You can use either:

  1. A Control character: Control characters don't appear in files. Tab (\t) is probably the best choice here.
  2. Some combination of characters which is unlikely to occur in your files. For e.g. #s# etc.

Tab is the generally preferred choice though.

like image 159
Nikhil Avatar answered Oct 18 '25 21:10

Nikhil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!