SED is a UNIX editing tool that can now run in DOS and Win32 environments. SED's function is to take a stream of text from a file or the console and manipulate it. Taking input from the console lets you write scripts that prompt the user for input. SED redirects the user's input to a file that your batch files can access.

To run two commands with one SED statement, use the ­e option, followed
by the commands enclosed in double quotation marks.

Substitution

	sed "s/old string/new string/g" < oldfile.txt > newfile.txt

User Input

	echo Please enter the value:
	sed -e "s/^/SET INPUT=/" -e "q" > c:\temp\in.bat
	CALL c:\temp\in.bat
	DEL  c:\temp\in.bat
	ECHO You have entered: %INPUT%