Facebook
Banner
XMPP JavaScript Library READ MORE

FIND command in DOS

Windows, Sachin Puri, 2011-02-09 16:24:48

About

Find command in dos is used to search for a string in file or files.

Syntex

find [/V] [/C] [/N] [/I] "<string to be searched>" <filepath-and-filename>

/V Displays all lines NOT containing the specified string
/C Display only count of lines containing specified string
/N Displays line number with lines which contains specified string
/I Ignores the case of characters

Examples

find "hello" contents.txt

It will search for "hello" in contents.txt file and output all the line which containts "hello"

find "hello" *.*

It will search for "hello" in all the file in current directory and output all the lines which contains "hello"

find "hello" c:windowscontants.txt

it will search for "hello" in contants.txt file which is located in c:windows folder

 

 

Add Your Comment
   
    Yes! I want to receive all comments by email

No Comments Posted Yet. Be the first one to post comment