Re: findstr, for, or other command to do this?
From: Matthias Tacke (Matthias_at_Tacke.de)
Date: 04/27/04
- Next message: David Candy: "Re: Xcopy behavior questions"
- Previous message: David Candy: "Re: FOR command question"
- In reply to: djc: "findstr, for, or other command to do this?"
- Next in thread: Matthias Tacke: "Re: findstr, for, or other command to do this?"
- Reply: Matthias Tacke: "Re: findstr, for, or other command to do this?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 27 Apr 2004 22:32:52 +0200
"djc" wrote:
>Situation: I have a log file with many fields and lines. Each line has say
>a computername field. The same computername will be listed several times
>thoughout the file. What if I wanted a list of computer names from the file?
>meaning 1 instance of each name returned from a command?
>
>example: A log file has 2 fields. ComputerName and DLLVersion. I want to
>construct a command or batch file that will return a unique list of computer
>names that do not have a DLLVersion equal to 4.1.002. Just using the find
>command gets me close but its not a unique list. The same computer names
>will be listed multiple times.
>
>any input is appreciated. Thanks.
>
You may sort the file and chain some find/fndstr.
Give a more detailed example.
-- Greetings Matthias________________________________________ For help on nt commands enter in a cmd window: W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
- Next message: David Candy: "Re: Xcopy behavior questions"
- Previous message: David Candy: "Re: FOR command question"
- In reply to: djc: "findstr, for, or other command to do this?"
- Next in thread: Matthias Tacke: "Re: findstr, for, or other command to do this?"
- Reply: Matthias Tacke: "Re: findstr, for, or other command to do this?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|