I want to pass the output of a Sed command to a variable in batch.
For example, in the file "input.txt" I have name=kiddy bla bla
.
I want to extract the the word kiddy
and save it in a variable (say, name
), so I can use it later (with %name%
).
|
||||
|
Sure, you can set a variable with the output of a
Yes, it's not so intuitive, but it works. P.S
|
|||||||||||||||||
|