Re: printing the associated filenames found by 'strings'

From: Greg Beeker (gbeeker_at_gmail.com)
Date: 03/30/05


Date: 30 Mar 2005 07:21:30 -0800


subPlanck@excite.com wrote:
> I'm trying to find a certain text string in a large number of binary
> files. The 'strings' utility finds the files, the offset and the
string
> I'm searching for, but it doesn't print the associated filenames,
like
> grep does. How do I modify the expression below to show them?
>
> find / -name "*.dll" -exec string -a -x {} ; | grep 'foo bar'
>
> z.entropic

pipe the command thru xargs

find . -name "*.dll" | xargs -i -t strings -a -x {}

Then you will see the filenames.



Relevant Pages

  • Re: Security implications of using open() on untrusted strings.
    ... Jorgen Grahn wrote: ... regexery however I would like to check filenames and I would like this ... Although it's a desktop app I'm a little squeamish ... Compare with a language where if the string ...
    (comp.lang.python)
  • Re: Extracting patterned filenames from [glob] without a loop - possible?
    ... > obtain the correct pattern to make it work. ... A couple obvious problems relate to the fact you are using string ... This is relatively safe since lists can easily be converted ... filenames without 'horrifcally clogging' a system. ...
    (comp.lang.tcl)
  • Re: Security implications of using open() on untrusted strings.
    ... regexery however I would like to check filenames and I would like this ... Although it's a desktop app I'm a little squeamish ... piping raw user input into a filesystem function like that and this app ... Compare with a language where if the string ...
    (comp.lang.python)
  • Re: How can I make a copy of my collection?
    ... Public Class FileNames ... Public fullName As String ... This app is simply to help me try to conform some of the files names ... And then even sub folders for file types. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to determine which process to kill ???
    ... >the filenames that were used, like, in a string array or something: ... >Private Function createTempFile() As String ... >some system related process or Windows Service or your AntiVirus agent. ...
    (microsoft.public.dotnet.languages.vb)