NetworkClue.com
NetworkClue Home PageHome Contact UsContact ConsultingConsult
Bulletin Board
Internet Services covers Secrets to hosting websites, Hosting your own web server, and using DNS Servers.Operating Systems leads you through the decision of Linux vs. Windows, ideal installations and setups to create an efficient and redundant environment for your business, and great features to make management easier.Routing & Firewalls contains articles that will allow you to take control of your router. Learn how to protect your company with access lists and advanced firewall techniques.Hardware answers the common questions about Switches vs. Hubs, recommends SysAdmin Tools, and recommendations for adequate power protection.Utilities will cover fighting spam, using Anti-Virus programs effectively and the must haves for every administrator's software toolbox.
Windows XP Commands


Bulletin Board

FindStr

By Joshua Erdman
Digital Foundation, inc.

This page contains a description of how to filter text files and/or text output.

Command Syntax

findstr [options] PATTERN [file....]

Findstr searches the specified input FILE (or standard input if no files are specified, such as if you pipe something to findstr) for lines that contain a match to the pattern.  By default, the matches are printed to the screen.  This is the equivalent to the Linux Grep tool.

Example

Example: In this example we search through the Windows folder for all files dated in 2004 using DIR at the commandline.

     dir c:\windows | findstr 2004

Article last reviewed: 12/18/2006

Created by: Digital Foundation, inc.

Copyright © 2002-2005 Digital Foundation, inc. www.networkclue.com

All content of the NetworkClue website is copyrighted. Articles, notes, outlines, and all other materials may not be stored on the Internet or sold or placed by themselves or with other material in any electronic or printed format in whole or part. However materials may be referenced by links to the site.

 

Related Articles:
Windows CommandsWindows Commands
Learning DOSLearning DOS
Advanced DOSAdvanced DOS

Books:



Search Amazon for
Books on Windows

 

Networking Forums Participate in our
Technical Forums