• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Command-Line Programs > General-Purpose Shell Programs

General-Purpose Shell Programs

At the command prompt, you'll find yourself using the built-in commands, such as pushd, cd, and dir, quite frequently. There are four other programs you should know about: findstr, more, tree, and xcopy. These come in handy in many situations—to examine the contents of text, script, and batch files, to examine directories, and to copy files.

findstr

Findstr is an enhanced version of the old text-searching program find. In its basic form, findstr scans one or more files, or the standard input, for text strings and prints those lines that contain the desired string. This is handy when you know what you're looking for but can't remember what file contains it, or to extract and condense specific information from files. It's especially helpful in batch files that gather information from programs that generate more text than you need; findstr can help you automatically cull the information.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint