I know that this is not what you wish, but with the live cd you get doszip (dz) - and with this tool you can search for text within a file.
Sent: Friday, February 07, 2025 at 2:56 PM
From: "Bruno Ribeiro via Freedos-devel" <freedos-devel@lists.sourceforge.net>
To: freedos-devel@lists.sourceforge.net
Cc: "Bruno Ribeiro" <oitofe...@gnu.org>
Subject: Re: [Freedos-devel] Search all text file contents in directories recursively
From: "Bruno Ribeiro via Freedos-devel" <freedos-devel@lists.sourceforge.net>
To: freedos-devel@lists.sourceforge.net
Cc: "Bruno Ribeiro" <oitofe...@gnu.org>
Subject: Re: [Freedos-devel] Search all text file contents in directories recursively
Hi Steve,
On 7/2/2025 10:51, Steve Nickolas via Freedos-devel wrote:
> On Fri, 7 Feb 2025, Bruno Ribeiro via Freedos-devel wrote:
>
>> What's the DOS equivalent of the Unix find-grep combo for searching
>> recursively within a directory all files matching a given criteria for
>> strings within them matching a given _expression_?
>>
>> Put in other words, more simply, how do I find within \freedos hierarchy
>> which text files have the string "foobar" occurring in them?
>>
>> Looking for a DOS-centric way of doing that. As last resort I know I
>> can always install DJGPP's find and grep.
>
> On PC DOS 7, there's find /s, but I don't think any other version of DOS
> (including DR DOS or Win9x) supports that and I have no idea about FreeDOS.
Unfortunately, it seems FreeDOS does not support it as well:
C:\FREEDOS>find/?
FreeDOS Find, version 3.0
GNU GPLv2 - copyright 1994-2007 by Jim Hall, Eric Auer and Imre Leber
FIND: Prints all lines of a file that contain a string
FIND [ /C ] [ /I ] [ /N ] [ /V ] "string" [ file... ]
/C Only count the matching lines
/I Ignore case
/N Show line numbers
/V Print lines that do not contain the string
C:\FREEDOS>
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel
On 7/2/2025 10:51, Steve Nickolas via Freedos-devel wrote:
> On Fri, 7 Feb 2025, Bruno Ribeiro via Freedos-devel wrote:
>
>> What's the DOS equivalent of the Unix find-grep combo for searching
>> recursively within a directory all files matching a given criteria for
>> strings within them matching a given _expression_?
>>
>> Put in other words, more simply, how do I find within \freedos hierarchy
>> which text files have the string "foobar" occurring in them?
>>
>> Looking for a DOS-centric way of doing that. As last resort I know I
>> can always install DJGPP's find and grep.
>
> On PC DOS 7, there's find /s, but I don't think any other version of DOS
> (including DR DOS or Win9x) supports that and I have no idea about FreeDOS.
Unfortunately, it seems FreeDOS does not support it as well:
C:\FREEDOS>find/?
FreeDOS Find, version 3.0
GNU GPLv2 - copyright 1994-2007 by Jim Hall, Eric Auer and Imre Leber
FIND: Prints all lines of a file that contain a string
FIND [ /C ] [ /I ] [ /N ] [ /V ] "string" [ file... ]
/C Only count the matching lines
/I Ignore case
/N Show line numbers
/V Print lines that do not contain the string
C:\FREEDOS>
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel
_______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel