24 TEXT STRING SEARCHES
In previous chapters, you’ve seen a number of searches, such as for files, directories, and even lost disk space. In this chapter, I’ll discuss the many ways of searching for text strings and possible applications for text searches. You’ll see searches for a single word, searches for one out of multiple possible words, and searches for a literal string containing multiple words. Another search flavor will look for a list of words and considers the search a success only if each and every word is found. I’ll show how to perform these searches against a file, multiple files, and other strings.
For performing these searches, ...
Get The Book of Batch Scripting now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.