I have text file "whitelist.txt" with one line:
whitelist_mac="11:11:11:11:11:11 22:22:22:22:22:22 33:33:33:33:33:33"
I need a batch script to add a new mac address 44:44:44:44:44:44 to this text in only one line at the end of line with (")
After I run the batch script the modified file should look like this:
whitelist_mac="11:11:11:11:11:11 22:22:22:22:22:22 33:33:33:33:33:33 44:44:44:44:44:44"
My attempt of a script is this:
@echo off
set /p mac=Add new MAC adress to whitelist:
echo whitelist_mac=%mac% >> whitelist.txt
pause