Author: Christophe Theron
Date: 12:39:32 05/26/02
Go up one level in this thread
On May 26, 2002 at 14:52:15, Roy Eassa wrote:
>On May 26, 2002 at 14:00:48, Jeremiah Penery wrote:
>
>>On May 26, 2002 at 01:49:09, Christophe Theron wrote:
>>
>>>On May 25, 2002 at 17:04:10, Jeremiah Penery wrote:
>>>
>>>>On May 25, 2002 at 15:29:31, Christophe Theron wrote:
>>>>
>>>>>So I wrote an utility that makes no assumption on the type of the files to
>>>>>search and can be used to do various things neither find nor grep can do.
>>>>
>>>>For example?
>>>
>>>
>>>
>>>ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
>>>³ EF Version 1.00 Copyright (c) 1995 Christophe Th‚ron ³
>>>³ Recherche de chaŒne de caractŠres dans tout fichier ³
>>>ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
>>>Syntaxe: EF fichier "texte" [/option] [/option] ...
>>> /u : tenir compte des majUscules/minUscules
>>> /e : mot Entier: texte ne doit pas faire partie d'un autre mot
>>> /f : afficher seulement le nom du Fichier
>>> /n : afficher le nom du fichier et le Nombre d'occurences
>>> /s : parcourir aussi tous les Sous-r‚pertoires
>>> /m : afficher une Marque devant le texte trouv‚
>>> /p : afficher la Position du texte dans le fichier
>>> /l : afficher le nø de la Ligne (pour les fichiers textes)
>>> /t : afficher le Texte, sans le nom du fichier
>>> /c : afficher la ligne ComplŠte (jusqu'… 255 caractŠres)
>>> /a : afficher le nom des fichiers dont le texte est Absent
>>> /i : afficher le texte s'il n'apparaŒt dans aucun fichier
>>> /d : afficher ce qu'il y a DerriŠre le texte trouv‚
>>>Dans le texte, le caractŠre '?' sert de joker.
>>>En sortie, ERRORLEVEL=1 si texte trouv‚, ERRORLEVEL=0 si pas trouv‚.
>>>Pendant la recherche, [Espace]=PAUSE [Echap]=ARRET
>>>
>>>Exemples: EF *.C printf EF *.exe ver: /u EF *.* "??DOS ?.??" /M /p
>>>
>>>
>>>
>>>I'm sorry, it's in french.
>>>
>>>You can switch case sensitivity. You can search for whole words only. You can
>>>get a listing with file names only (which file contains this?), you can get a
>>>listing with number of occurences instead of the occurences themselves, you can
>>>search in the subdirectories, you can get a listing with a big mark before the
>>>occurences (to make them more easy to read), you can get a listing with the
>>>absolute position of the occurences in the files (in characters) or the line
>>>number (for text files only).
>>>
>>>You can also print the occurence itself without the file name, get the full
>>>occurence up to 255 characters, get a listing of files NOT containing the text,
>>>print the text only if it appears in NO file, and finally not print the
>>>occurence but only the text that follows immediately the occurence.
>>>
>>>Additionally an errorlevel is returned if the text is found (useful for batch
>>>files) and you can use space and escape to pause and stop.
>>>
>>>It does not work with regular expressions, it only accept the "?" character as
>>>joker. But it is very fast.
>>>
>>>Find is nowhere near.
>>
>>You're correct that "find" can't do all of these things, but it can do several
>>of those things. Perhaps in a previous version, the command couldn't do much,
>>but a lot of the command-line utilities have become pretty powerful since
>>Windows2000. Maybe this is only in the "Professional" edition of WindowsXP, not
>>the "Home" edition - I don't know.
>
>
>
>Your post shows up in a different font than any other post I've ever read here.
>It seems to be a reproducible attribute of that one post. Very strange...
It's because I have sent the output of my "EF" DOS utility to a file and
directly pasted the file in the message.
French accentuated DOS characters (like é, è or à) do not translate correctly to
Windows accentuated characters without a specific conversion.
Christophe
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.