Jesoba.com is launched, Click below image to access it

Jesoba.com is launched, Click below image to access it
Technology and Entertainment Blog

Find a particular keyword in text file from command prompt

Title: Find a particular keyword in text file from command prompt

Description:

If you love command prompt then this article would be really interesting for you.

Suppose you want to search for a keyword 'fail' in a text file name fail.txt

Go to command prompt and type following command.


C:\>find "fail" c:\fail.txt

---------- C:\FAIL.TXT
This is my test file failed to add This is my test file
This is my test file failed to connect This is my test file
This is my test file failed to restore

In output you will see all the lines which contains the word 'fail'

This also helpful and time saving as you dont have to open my computer, file path, find, type etc.

The major benefit is that you can see all lines containing 'error' together.

Keyword: search text file from command prompt

No comments:

Google+ Badge

About Author

My photo

I am Senior Server Expert and Professional Blogger.