Re: printing the associated filenames found by 'strings'
From: Chuck Dillon (spam_at_nimblegen.com)
Date: 03/30/05
- Previous message: AT&T_RETRO: "Re: SCO UNIX v/386 RELEASE 3.2 version 2.0"
- In reply to: subPlanck_at_excite.com: "printing the associated filenames found by 'strings'"
- Next in thread: subPlanck_at_excite.com: "Re: printing the associated filenames found by 'strings'"
- Reply: subPlanck_at_excite.com: "Re: printing the associated filenames found by 'strings'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Mar 2005 09:55:44 -0600
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
>
Something along the lines of...
find ~ -name "*.dll" | xargs -i# echo "strings -a -tx '#' | \
grep whatever | sed 's,^,#,'" | sh
-- ced
-- Chuck Dillon Senior Software Engineer NimbleGen Systems Inc.
- Previous message: AT&T_RETRO: "Re: SCO UNIX v/386 RELEASE 3.2 version 2.0"
- In reply to: subPlanck_at_excite.com: "printing the associated filenames found by 'strings'"
- Next in thread: subPlanck_at_excite.com: "Re: printing the associated filenames found by 'strings'"
- Reply: subPlanck_at_excite.com: "Re: printing the associated filenames found by 'strings'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|