Knowledge Walls
John Peter
Pune, Maharashtra, India
Things to Know [cont'd]
Find in Commands of MS-DOS Commands
4961 Views
Find command in MS-DOS 
FIND used to search in file contents.
   
Command Syntax: 
   FIND [/V] [/I] [/N] [/C] "search-string" [target-file]

Choice Meaning
/V Not contains
/I Not case sensitive
/C Returns matched count
/N With line numbers
How to use?
#To find in *.java files
#Displays which lines are contains "com."

FIND "com." *.java
How to find not contains text in files?
#To find in *.java files
#Displays which lines are not contains "com."

FIND /V "com." *.java
How to find matches line count using FIND command?
#To find in *.java files
#Displays matches count of  "com." string file wise.
FIND /C "com." *.java

#Output
Program1.java - 5
Program2.java - 10
Next Topics
Next lessons of current book.
Commands of MS-DOS Commands
Commands of MS-DOS Commands
Commands of MS-DOS Commands
Commands of MS-DOS Commands
Commands of MS-DOS Commands
Previous Topics
Previous lessons of current book.
Best Lessons of "MS-DOS Commands"
Top lessons which are viewed more times.
Arithmetic Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
String manipulation of MS-DOS Commands
Relational Operators of MS-DOS Commands
String manipulation of MS-DOS Commands
String manipulation of MS-DOS Commands
Things to Know of MS-DOS Commands
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details