Re: printing the associated filenames found by 'strings'
From: Greg Beeker (gbeeker_at_gmail.com)
Date: 03/30/05
- Next message: nqhien_at_his.com: "Search for Large files in Unix"
- Previous message: Greg Beeker: "Re: unix file system(s)"
- 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: 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.
- Next message: nqhien_at_his.com: "Search for Large files in Unix"
- Previous message: Greg Beeker: "Re: unix file system(s)"
- 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
|