I need some help. This code
for /f "usebackq delims=" %%a in (`
mysql -u%dbUser% -e "SHOW DATABASES LIKE '%%sample%%';"
^| findstr /l /v /c:"Database" /c:"information_schema"
`) do set a=%%a
has a result if echo %%a
sample
sample_test
test_sample
but after the for loop with that code when i add echo %a% the result is only
test_sample
how could it be so that i can still get the same output on echo %%a