Search a text in a text file and print in CMD prompt using batch file
<p>I want to write a batch file (.bat). Using the batch file I want to search for a unique text in a text file and print the line containing the text into console window as output. Search criteria is user input.</p>

<p>Which batch code is required for this task?</p>

<p>For example below is the content of the .txt file.</p>

<blockquote>
  <p>"Command Prompt, also known as cmd.exe or cmd (after its executable file name), <strong>is the command-line interpreter on Windows NT, Windows CE, OS/2 and  eComStation</strong> operating systems. It is the counterpart of COMMAND.COM in DOS and Windows 9x systems (where it is also called "MS-DOS Prompt"), and analogous to the Unix shells used on Unix-like systems. The initial version of Command Prompt for Windows NT was developed by Therese Stowell.[1]"</p>
</blockquote>

<p>I want to write a batch script using Windows standard commands where user inputs the search string like <code>Windows CE</code> and the entire line with this string gets output in command prompt window.</p>

<p>For example on user inputs <code>Windows CE</code> the output should be:</p>

<pre><code>is the command-line interpreter on Windows NT, Windows CE, OS/2 and eComStation
</code></pre>