Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does :/= mean in %date:/=%?

While searching for a way to create a date-named directory in Windows, I came accross this question with that accepted answer.

There's a comment below the accepted answer:

To make it more easy: mkdir %date:/=%

So, %date% prints the current date, but what does :/= do?

like image 539
eckes Avatar asked Jan 09 '14 22:01

eckes


People also ask

What is utes slang for?

Word forms: utes Ute is an abbreviation for utility vehicle. [Australian, informal]

What is a ute in UK slang?

Ute is an abbreviation for ' utility vehicle'.

What does ute stand for in cars?

Historically, the term "ute" (short for 'utility vehicle') has been used to describe a 2-door vehicle based on a passenger car chassis, such as the Holden Commodore, Australian Ford Falcon, Chevrolet El Camino and Subaru BRAT.

What is the plural of ute?

Ute. [ yoot ] SHOW IPA. / yut / PHONETIC RESPELLING. noun, plural Utes, (especially collectively) Ute. a member of an American Indian people of Utah and W Colorado.


2 Answers

It means substitute for the string between the : and the = with the string after the = and before the closing %

So it strips out any / from the variable %date% which is set by default to the current date.

like image 175
Magoo Avatar answered Sep 24 '22 01:09

Magoo


The form of the command is

%variable:text=replace%

and it removes text and inserts replace in the same spot.

In your case the replace is empty so it just removes any / characters from the date string.

like image 33
foxidrive Avatar answered Sep 25 '22 01:09

foxidrive