Code: Select all
quiet
haha
search-replace.cmd
Code: Select all
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET "word=quiet"
SET "substitute=quiethaha"
FOR /F "delims=" %%a IN (E:\isolinux\txt.cfg) DO (
SET "line=%%a"
CALL SET "line=%%line:%word%=%substitute%%%"
ECHO !line!
)
pause
E:\isolinux\txt.cfg
Code: Select all
default live
label live
menu label ^Try Ubuntu without installing
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed initrd=/casper/initrd quiet splash ---
label live-nomodeset
menu label ^Try Ubuntu without installing (safe graphics)
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed initrd=/casper/initrd quiet splash nomodeset ---
label live-install
menu label ^Install Ubuntu
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed only-ubiquity initrd=/casper/initrd quiet splash ---
label live-install-nomodeset
menu label ^Install Ubuntu (safe graphics)
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed only-ubiquity initrd=/casper/initrd quiet splash nomodeset ---
label memtest
menu label Test ^memory
kernel /install/mt86plus
label hd
menu label ^Boot from first hard disk
localboot 0x80