Re: printing the associated filenames found by 'strings'
subPlanck_at_excite.com
Date: 03/31/05
- Next message: subPlanck_at_excite.com: "Re: printing the associated filenames found by 'strings'"
- Previous message: Alan Connor: "Re: UNIX is/was an Operating System"
- In reply to: Greg Beeker: "Re: printing the associated filenames found by 'strings'"
- Next in thread: Chuck Dillon: "Re: printing the associated filenames found by 'strings'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Mar 2005 05:32:59 -0800
Greg Beeker wrote:
> 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.
Yes, I see them, but there's a million of lines scrolling on my screen
(so many DLLs...), thus making '| pg' impractical, then somehow the
output cannot be redirected into a tmp file to be browsed at my
leisure, and the filenames are not on the same line...
Maybe somebody should rewrite 'strings' to print filenames, like grep
does?
z.entropic
- Next message: subPlanck_at_excite.com: "Re: printing the associated filenames found by 'strings'"
- Previous message: Alan Connor: "Re: UNIX is/was an Operating System"
- In reply to: Greg Beeker: "Re: printing the associated filenames found by 'strings'"
- Next in thread: Chuck Dillon: "Re: printing the associated filenames found by 'strings'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|